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

Method get_headers

test/functional/p2p_compactblocks.py:115–119  ·  view source on GitHub ↗
(self, locator, hashstop)

Source from the content-addressed store, hash-verified

113 self.last_message.pop("cmpctblock", None)
114
115 def get_headers(self, locator, hashstop):
116 msg = msg_getheaders()
117 msg.locator.vHave = locator
118 msg.hashstop = hashstop
119 self.send_message(msg)
120
121 def send_header_for_blocks(self, new_blocks):
122 headers_message = msg_headers()

Callers 2

Calls 2

msg_getheadersClass · 0.90
send_messageMethod · 0.45

Tested by

no test coverage detected