-
Notifications
You must be signed in to change notification settings - Fork 684
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
start_from_genesis.py doomslug_off is flaky #3138
Comments
What the test is doing:
The test expects that node1 does not not sync, and produces 10 blocks from genesis to height ~20, so node0 should not save them. But node1 can still sync: some time after starting, node0 produces a new block and sends it to node1, and node1 request the chain of parents through orphan logic in So, if node1 syncs between steps 4 and 5, the test fails, but when it happens after step 5 test passes. Possible ways to fix the test:
|
The first way should be OK, I don't think there's any reason for the current order of those two operations |
Fixes #3138 Make the test do adv_produce_blocks when the node is disconnected, so it doesn't accidentally sync and produce blocks on top of main chain. Also remove disabling header sync, because it disables sync in both directions and prevents the correct node from getting malicious headers. Test plan --------- Run start_from_genesis.py in all modes many times
Fixes #3138 Make the test do adv_produce_blocks when the node is disconnected, so it doesn't accidentally sync and produce blocks on top of main chain. Also remove disabling header sync, because it disables sync in both directions and prevents the correct node from getting malicious headers. Test plan --------- Run start_from_genesis.py in all modes many times
Fixes #3138 Make the test do adv_produce_blocks when the node is disconnected, so it doesn't accidentally sync and produce blocks on top of main chain. Also remove disabling header sync, because it disables sync in both directions and prevents the correct node from getting malicious headers. Test plan --------- Run start_from_genesis.py in all modes many times
Fixes #3138 Make the test do adv_produce_blocks when the node is disconnected, so it doesn't accidentally sync and produce blocks on top of main chain. Also remove disabling header sync, because it disables sync in both directions and prevents the correct node from getting malicious headers. Test plan --------- Run start_from_genesis.py in all modes many times
Fixes #3138 Make the test do adv_produce_blocks when the node is disconnected, so it doesn't accidentally sync and produce blocks on top of main chain. Also remove disabling header sync, because it disables sync in both directions and prevents the correct node from getting malicious headers. Test plan --------- Run start_from_genesis.py in all modes many times
E.g.
http://52.149.162.182:3000/#/test/7284
http://52.149.162.182:3000/#/test/7644
The text was updated successfully, but these errors were encountered: