MCPcopy Index your code
hub / github.com/Bitmessage/PyBitmessage / checkEOLSanity

Method checkEOLSanity

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

Source from the content-addressed store, hash-verified

56 raise BMObjectInsufficientPOWError()
57
58 def checkEOLSanity(self):
59 # EOL sanity check
60 if self.expiresTime - int(time.time()) > BMObject.maxTTL:
61 logger.info('This object\'s End of Life time is too far in the future. Ignoring it. Time is %i', self.expiresTime)
62 # TODO: remove from download queue
63 raise BMObjectExpiredError()
64
65 if self.expiresTime - int(time.time()) < BMObject.minTTL:
66 logger.info('This object\'s End of Life time was too long ago. Ignoring the object. Time is %i&#x27;, self.expiresTime)
67 # TODO: remove from download queue
68 raise BMObjectExpiredError()
69
70 def checkStream(self):
71 if self.streamNumber not in state.streamsInWhichIAmParticipating:

Callers 1

bm_command_objectMethod · 0.80

Calls 1

Tested by

no test coverage detected