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

Method on_inv

test/functional/test_framework/p2p.py:422–428  ·  view source on GitHub ↗
(self, message)

Source from the content-addressed store, hash-verified

420 def on_wtxidrelay(self, message): pass
421
422 def on_inv(self, message):
423 want = msg_getdata()
424 for i in message.inv:
425 if i.type != 0:
426 want.inv.append(i)
427 if len(want.inv):
428 self.send_message(want)
429
430 def on_ping(self, message):
431 self.send_message(msg_pong(message.nonce))

Callers 1

on_invMethod · 0.45

Calls 2

msg_getdataClass · 0.90
send_messageMethod · 0.45

Tested by

no test coverage detected