Fix maxuploadtarget.py

start_node() calls TestNode.start, which internally uses the old mocktime
value. We need to pass the current value manually.
This commit is contained in:
Alexander Block 2019-09-24 16:23:31 +02:00
parent e37bd6d96c
commit b93785d8dc

View File

@ -151,7 +151,7 @@ class MaxUploadTest(BitcoinTestFramework):
#stop and start node 0 with 1MB maxuploadtarget, whitelist 127.0.0.1
self.log.info("Restarting nodes with -whitelist=127.0.0.1")
self.stop_node(0)
self.start_node(0, ["-whitelist=127.0.0.1", "-maxuploadtarget=1", "-blockmaxsize=999000", "-maxtipage="+str(2*60*60*24*7)])
self.start_node(0, ["-whitelist=127.0.0.1", "-maxuploadtarget=1", "-blockmaxsize=999000", "-maxtipage="+str(2*60*60*24*7), "-mocktime="+str(current_mocktime)])
#recreate/reconnect a test node
test_nodes = [TestNode()]