MCPcopy Create free account
hub / github.com/ElementsProject/elements / send_getblocks

Method send_getblocks

test/functional/p2p_sendheaders.py:142–145  ·  view source on GitHub ↗
(self, locator)

Source from the content-addressed store, hash-verified

140 self.send_message(headers_message)
141
142 def send_getblocks(self, locator):
143 getblocks_message = msg_getblocks()
144 getblocks_message.locator.vHave = locator
145 self.send_message(getblocks_message)
146
147 def wait_for_block_announcement(self, block_hash, timeout=60):
148 test_function = lambda: self.last_blockhash_announced == block_hash

Callers 1

test_nonnull_locatorsMethod · 0.45

Calls 2

msg_getblocksClass · 0.50
send_messageMethod · 0.45

Tested by 1

test_nonnull_locatorsMethod · 0.36