Tests for comment payouts
Changes included in this merge request:
- Add test
test_cumulative_payout_for_comments
in 2 forms:
- complete_graph: nodes work in a classic network (each node is connected to each other)
- bastion: every miner node is only connected to its own ApiNode. ApiNodes are connected to each other.
- Function
run_networks
has been changed:
- This function is used to connect nodes into a network. However, this function was not working properly. In the original version of the function, each node in the network was loaded serially, then it was turned on. This led to network startup errors when loading large block_logs. The fix was to change the way nodes are enabled to parallel. When loading block logs, each node reads block_log serially first. The next step is to turn on all nodes with the same timestamp in parallel.
- Port assignment for network nodes has been added. For each test, ports are assigned depending on the test worker (assigned by pytest).
- Changes in the
run_networks
function affected thefork_tests
CI job. This has been divided into 3 independent jobs. - Changes in CI yaml - use absolute path for JUNIT_REPORT
Edited by Michał Kudela