Skip to content

Commit ef4d74a

Browse files
UdjinM6knst
authored andcommitted
test: remove dead code from p2p_initial_headers_sync.py to favor of disable mocktime
Credits to UdjinM6
1 parent 4d9837c commit ef4d74a

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

test/functional/p2p_initial_headers_sync.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,6 @@ def set_test_params(self):
3131
self.disable_mocktime = True
3232
self.num_nodes = 1
3333

34-
def setup_chain(self):
35-
# This test operates under the assumption that the adjusted time is well ahead of block
36-
# time.
37-
#
38-
# By default when we setup a new chain, we also adjust the mocktime (this is not done in
39-
# Bitcoin's test suite), which violates this test's assumption and causes it to fail. We
40-
# remedy this by ensuring the test's assumptions are met (i.e. we don't adjust mocktime)
41-
#
42-
self.log.info("Initializing test directory " + self.options.tmpdir)
43-
if self.setup_clean_chain:
44-
self._initialize_chain_clean()
45-
else:
46-
self._initialize_chain()
47-
4834
def announce_random_block(self, peers):
4935
new_block_announcement = msg_inv(inv=[CInv(MSG_BLOCK, random.randrange(1<<256))])
5036
for p in peers:

0 commit comments

Comments
 (0)