$ test/functional/p2p_dos_header_tree.py
2023-01-02T14:00:52.424000Z TestFramework (INFO): Initializing test directory /tmp/BGL_func_test_h9yicnyf
2023-01-02T14:00:53.016000Z TestFramework (INFO): Read headers data
2023-01-02T14:00:53.025000Z TestFramework (INFO): Feed all non-fork headers, including and up to the first checkpoint
2023-01-02T14:00:53.195000Z TestFramework (INFO): Feed all fork headers (fails due to checkpoint)
2023-01-02T14:00:53.296000Z TestFramework (INFO): Feed all fork headers (succeeds without checkpoint)
2023-01-02T14:00:54.117000Z TestFramework (INFO): Stopping nodes
2023-01-02T14:00:54.326000Z TestFramework (INFO): Cleaning up /tmp/BGL_func_test_h9yicnyf on exit
2023-01-02T14:00:54.326000Z TestFramework (INFO): Tests successful
Notes
With additional debug messages I was able to verify that the testnet headers are decoded correctly. The first 546 headers are real BGL testnet headers fetched using BGL block explorer. Two additional fork headers were generated by mining two blocks on a local clean testnet chain (not regtest).
Description
Goal of this PR is to fix failing p2p_dos_header_tree functional test case. Fixes also https://github.com/BitgesellOfficial/bitgesell/issues/96
The test case is fixed by setting correct BGL testnet headers, and simulated fork by providing two new mined headers:
The first mined testnet block
The second mined testnet block
Test run
Notes
With additional debug messages I was able to verify that the testnet headers are decoded correctly. The first 546 headers are real BGL testnet headers fetched using BGL block explorer. Two additional fork headers were generated by mining two blocks on a local clean testnet chain (not regtest).