Fix minchainwork.py

This commit is contained in:
Alexander Block 2019-09-25 14:44:18 +02:00
parent 9a96c06057
commit 438a972a72

View File

@ -32,6 +32,8 @@ class MinimumChainWorkTest(BitcoinTestFramework):
self.node_min_work = [0, 101, 101] self.node_min_work = [0, 101, 101]
def setup_network(self): def setup_network(self):
# Force CanDirectFetch to return false (otherwise nMinimumChainWork is ignored)
self.mocktime += 21 * 2.6 * 60
# This test relies on the chain setup being: # This test relies on the chain setup being:
# node0 <- node1 <- node2 # node0 <- node1 <- node2
# Before leaving IBD, nodes prefer to download blocks from outbound # Before leaving IBD, nodes prefer to download blocks from outbound