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

Method send_getblocks

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

Source from the content-addressed store, hash-verified

134 self.send_without_ping(headers_message)
135
136 def send_getblocks(self, locator):
137 getblocks_message = msg_getblocks()
138 getblocks_message.locator.vHave = locator
139 self.send_without_ping(getblocks_message)
140
141 def wait_for_block_announcement(self, block_hash, timeout=60):
142 test_function = lambda: self.last_blockhash_announced == block_hash

Callers 1

test_nonnull_locatorsMethod · 0.80

Calls 2

msg_getblocksClass · 0.85
send_without_pingMethod · 0.80

Tested by 1

test_nonnull_locatorsMethod · 0.64