- 05F39E51685760A96A63D9D96565FF66C8D6A44A521787AF7E992EC7F0FD50B589DF8EE69FF81DB69823D98CBE223FB157047157F43C43F4CCC504498530F027
+ F53458362F6D7C18A066F42DBA0D1F8370DEF5BE9DD1A89A972082F3D387E34881CC879688AD66D1F5FE0D5930132FFCC176D32FA34487C0F5226394C17E6169
blatta/lib/station.py
(3 . 7)(3 . 6)
155 import logging
156 import os
157 from state import State
158 from infosec import MAX_BOUNCES
159 from infosec import STALE_PACKET
160 from infosec import DUPLICATE_PACKET
161 from infosec import MALFORMED_PACKET
(16 . 9)(15 . 6)
163 from commands import DIRECT
164 from peer import Peer
165
166 RUBBISH_INTERVAL = 10
167 EMBARGO_INTERVAL = 1
168
169 class Station(object):
170 def __init__(self, options):
171 self.client = None
(153 . 7)(149 . 7)
173 })
174
175 def rebroadcast(self, message):
176 if message.bounces < MAX_BOUNCES:
177 if message.bounces < int(self.state.get_knob("max_bounces")):
178 message.command = BROADCAST
179 message.bounces = message.bounces + 1
180 self.infosec.message(message)