diff --git a/test/functional/assumevalid.py b/test/functional/assumevalid.py index 11f4125bd..46ab5a366 100755 --- a/test/functional/assumevalid.py +++ b/test/functional/assumevalid.py @@ -45,7 +45,7 @@ from test_framework.mininode import (CBlockHeader, msg_headers) from test_framework.script import (CScript, OP_TRUE) from test_framework.test_framework import BitcoinTestFramework -from test_framework.util import (p2p_port, assert_equal, get_mocktime, set_mocktime, set_node_times) +from test_framework.util import (p2p_port, assert_equal, set_node_times) class BaseNode(NodeConnCB): def send_header_for_blocks(self, new_blocks): @@ -183,7 +183,7 @@ class AssumeValidTest(BitcoinTestFramework): node2.wait_for_verack() # Make sure nodes actually accept the many headers - self.set_mocktime(self.block_time) + self.mocktime = self.block_time set_node_times(self.nodes, self.mocktime) # send header lists to all three nodes. diff --git a/test/functional/maxuploadtarget.py b/test/functional/maxuploadtarget.py index f1bc0fd2b..8b39cc89b 100755 --- a/test/functional/maxuploadtarget.py +++ b/test/functional/maxuploadtarget.py @@ -44,7 +44,7 @@ class MaxUploadTest(BitcoinTestFramework): # Advance all nodes 2 weeks in the future old_mocktime = self.mocktime current_mocktime = old_mocktime + 2*60*60*24*7 - self.set_mocktime(current_mocktime) + self.mocktime = current_mocktime set_node_times(self.nodes, current_mocktime) # Before we connect anything, we first set the time on the node