File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -98,9 +98,9 @@ def run_test(self):
98
98
99
99
# Longest chain is extended so stale is much older than chain tip
100
100
self .nodes [0 ].setmocktime (0 )
101
- self .nodes [0 ].generatetoaddress (1 , self .nodes [0 ].get_deterministic_priv_key ().address )
101
+ block_hash = int ( self .nodes [0 ].generatetoaddress (1 , self .nodes [0 ].get_deterministic_priv_key ().address )[ - 1 ], 16 )
102
102
assert_equal (self .nodes [0 ].getblockcount (), 14 )
103
- node0 .sync_with_ping ( )
103
+ node0 .wait_for_block ( block_hash , timeout = 3 )
104
104
105
105
# Request for very old stale block should now fail
106
106
with p2p_lock :
@@ -128,5 +128,6 @@ def run_test(self):
128
128
self .send_header_request (block_hash , node0 )
129
129
node0 .wait_for_header (hex (block_hash ), timeout = 3 )
130
130
131
+
131
132
if __name__ == '__main__' :
132
133
P2PFingerprintTest ().main ()
You can’t perform that action at this time.
0 commit comments