MCPcopy Create free account
hub / github.com/Bitmessage/PyBitmessage / checkBroadcast

Method checkBroadcast

src/network/bmobject.py:106–113  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

104 raise BMObjectInvalidError()
105
106 def checkBroadcast(self):
107 if len(self.data) < 180:
108 logger.debug('The payload length of this broadcast packet is unreasonably low. Someone is probably trying funny business. Ignoring message.')
109 raise BMObjectInvalidError()
110
111 # this isn't supported anymore
112 if self.version < 2:
113 raise BMObjectInvalidError()

Callers 1

checkObjectByTypeMethod · 0.95

Calls 1

Tested by

no test coverage detected