mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-05-02 17:59:45 +02:00
test: fix intermittent failures with test=addrman
The nKey of the addrman is generated the first time the node is started. Therefore, restarting a node or turning it off and on again won't make a previously non-deterministic addrman deterministic. Co-authored-by: 0xb10c <b10c@b10c.me>
This commit is contained in:
@@ -39,7 +39,8 @@ def expected_messages(filename):
|
||||
class AsmapTest(BitcoinTestFramework):
|
||||
def set_test_params(self):
|
||||
self.num_nodes = 1
|
||||
self.extra_args = [["-checkaddrman=1"]] # Do addrman checks on all operations.
|
||||
# Do addrman checks on all operations and use deterministic addrman
|
||||
self.extra_args = [["-checkaddrman=1", "-test=addrman"]]
|
||||
|
||||
def fill_addrman(self, node_id):
|
||||
"""Add 2 tried addresses to the addrman, followed by 2 new addresses."""
|
||||
|
||||
Reference in New Issue
Block a user