MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / wait_for_getdata

Method wait_for_getdata

test/functional/p2p_sendheaders.py:148–153  ·  view source on GitHub ↗
(self, hash_list, timeout=60)

Source from the content-addressed store, hash-verified

146 self.send_message(getblocks_message)
147
148 def wait_for_getdata(self, hash_list, timeout=60):
149 if hash_list == []:
150 return
151
152 test_function = lambda: "getdata" in self.last_message and [x.hash for x in self.last_message["getdata"].inv] == hash_list
153 wait_until(test_function, timeout=timeout, lock=mininode_lock)
154
155 def wait_for_block_announcement(self, block_hash, timeout=60):
156 test_function = lambda: self.last_blockhash_announced == block_hash

Callers 4

test_nonnull_locatorsMethod · 0.45
run_testMethod · 0.45

Calls 1

wait_untilFunction · 0.90

Tested by 1

test_nonnull_locatorsMethod · 0.36