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

Class Message

contrib/tracing/p2p_monitor.py:75–85  ·  view source on GitHub ↗

A P2P network message.

Source from the content-addressed store, hash-verified

73
74
75class Message:
76 """ A P2P network message. """
77 msg_type = ""
78 size = 0
79 data = bytes()
80 inbound = False
81
82 def __init__(self, msg_type, size, inbound):
83 self.msg_type = msg_type
84 self.size = size
85 self.inbound = inbound
86
87
88class Peer:

Callers 2

handle_inboundFunction · 0.85
handle_outboundFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected