MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / bumpmocktime

Method bumpmocktime

test/functional/test_framework/test_node.py:854–859  ·  view source on GitHub ↗

Fast forward using setmocktime to self.mocktime + seconds. Requires setmocktime to have been called at some point in the past.

(self, seconds)

Source from the content-addressed store, hash-verified

852 return any(peer["subver"] == other_subver for peer in self.getpeerinfo())
853
854 def bumpmocktime(self, seconds):
855 """Fast forward using setmocktime to self.mocktime + seconds. Requires setmocktime to have
856 been called at some point in the past."""
857 assert self.mocktime
858 self.mocktime += seconds
859 self.setmocktime(self.mocktime)
860
861 def wait_until(self, test_function, timeout=60, check_interval=0.05):
862 return wait_until_helper_internal(test_function, timeout=timeout, timeout_factor=self.timeout_factor, check_interval=check_interval)

Callers 15

run_testMethod · 0.80
run_testMethod · 0.80
test_encryptedMethod · 0.80
test_earlykeyresponseMethod · 0.80
test_v2disconnectionMethod · 0.80
test_inv_blockMethod · 0.80

Calls 1

setmocktimeMethod · 0.95

Tested by

no test coverage detected