Page MenuHomePhabricator

Split fixed seeds to support multiple networks
AcceptedPublic

Authored by jasonbcox on Nov 9 2020, 22:37.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Summary

See title.

Depends on D8339

Test Plan
ninja check
python3 generate-seeds.py abc > ../../src/networks/abc/chainparamsseeds.cpp
python3 generate-seeds.py bchn > ../../src/networks/bchn/chainparamsseeds.cpp

generate-seeds.py output should match the current patch, so no uncommitted changes
should be present.

Diff Detail

Event Timeline

Tail of the build log:

/work /work/abc-ci-builds/lint-circular-dependencies
A new circular dependency in the form of "chainparams -> chainparamsseeds -> chainparams" appears to have been introduced.

/work/abc-ci-builds/lint-circular-dependencies
Build lint-circular-dependencies failed with exit code 1

Tail of the build log:

/work /work/abc-ci-builds/lint-circular-dependencies
A new circular dependency in the form of "chainparams -> chainparamsseeds -> chainparams" appears to have been introduced.

/work/abc-ci-builds/lint-circular-dependencies
Build lint-circular-dependencies failed with exit code 1

Move SeedSpec6 to more appropriate header file to fix circular dependency

Tail of the build log:

wallet_create_tx.py                              | ✓ Passed  | 10 s
wallet_createwallet.py                           | ✓ Passed  | 2 s
wallet_createwallet.py --usecli                  | ✓ Passed  | 3 s
wallet_disable.py                                | ✓ Passed  | 1 s
wallet_dump.py                                   | ✓ Passed  | 3 s
wallet_encryption.py                             | ✓ Passed  | 6 s
wallet_groups.py                                 | ✓ Passed  | 54 s
wallet_hd.py                                     | ✓ Passed  | 6 s
wallet_import_rescan.py                          | ✓ Passed  | 8 s
wallet_import_with_label.py                      | ✓ Passed  | 1 s
wallet_importmulti.py                            | ✓ Passed  | 4 s
wallet_importprunedfunds.py                      | ✓ Passed  | 2 s
wallet_keypool.py                                | ✓ Passed  | 3 s
wallet_keypool_topup.py                          | ✓ Passed  | 3 s
wallet_labels.py                                 | ✓ Passed  | 2 s
wallet_listreceivedby.py                         | ✓ Passed  | 16 s
wallet_listsinceblock.py                         | ✓ Passed  | 5 s
wallet_listtransactions.py                       | ✓ Passed  | 7 s
wallet_multiwallet.py                            | ✓ Passed  | 12 s
wallet_reorgsrestore.py                          | ✓ Passed  | 3 s
wallet_resendwallettransactions.py               | ✓ Passed  | 5 s
wallet_txn_clone.py                              | ✓ Passed  | 2 s
wallet_txn_clone.py --mineblock                  | ✓ Passed  | 3 s
wallet_txn_doublespend.py                        | ✓ Passed  | 3 s
wallet_txn_doublespend.py --mineblock            | ✓ Passed  | 3 s
wallet_watchonly.py                              | ✓ Passed  | 1 s
wallet_watchonly.py --usecli                     | ✓ Passed  | 1 s
wallet_zapwallettxes.py                          | ✓ Passed  | 5 s

ALL                                              | ✓ Passed  | 961 s (accumulated) 
Runtime: 193 s

[22/423] Test Bitcoin RPC authentication...
...
----------------------------------------------------------------------
Ran 3 tests in 0.004s

OK
[23/423] cd /work/contrib/devtools/chainparams && /usr/bin/python3.7 ./test_make_chainparams.py
.....
----------------------------------------------------------------------
Ran 5 tests in 0.001s

OK
[157/423] avalanche: testing peermanager_tests
FAILED: src/avalanche/test/CMakeFiles/check-avalanche-peermanager_tests 
cd /work/abc-ci-builds/build-debug/src/avalanche/test && /usr/bin/cmake -E make_directory /work/abc-ci-builds/build-debug/test/junit && /usr/bin/cmake -E make_directory /work/abc-ci-builds/build-debug/test/log && /usr/bin/cmake -E env /work/cmake/utils/log-and-print-on-failure.sh /work/abc-ci-builds/build-debug/test/log/avalanche-peermanager_tests.log /work/abc-ci-builds/build-debug/src/avalanche/test/test-avalanche --run_test=peermanager_tests --logger=HRF,test_suite:JUNIT,message,avalanche-peermanager_tests.xml --catch_system_errors=no
Running 7 test cases...
Entering test module "Avalanche Test Suite"
../../src/avalanche/test/peermanager_tests.cpp(15): Entering test suite "peermanager_tests"
../../src/avalanche/test/peermanager_tests.cpp(17): Entering test case "select_peer_linear"
../../src/avalanche/test/peermanager_tests.cpp(17): Leaving test case "select_peer_linear"; testing time: 75124us
../../src/avalanche/test/peermanager_tests.cpp(69): Entering test case "select_peer_dichotomic"
../../src/avalanche/test/peermanager_tests.cpp(69): Leaving test case "select_peer_dichotomic"; testing time: 22735us
../../src/avalanche/test/peermanager_tests.cpp(124): Entering test case "select_peer_random"
test-avalanche: ../../src/./random.h:184: uint64_t FastRandomContext::randrange(uint64_t): Assertion `range' failed.
Aborted (core dumped)
[169/423] secp256k1: testing secp256k1-tests
ninja: build stopped: subcommand failed.
Build build-debug failed with exit code 1

Note: the test failure is fixed in D8345

Rebase. Note that D8339 has taken on some of the changes that were in this
patch as they belong there instead.

This revision is now accepted and ready to land.Nov 13 2020, 07:06