minor bug fixes
This commit is contained in:
parent
8d1bc609ea
commit
96219c81ab
5 changed files with 7 additions and 11 deletions
|
@ -90,7 +90,7 @@ class Block:
|
|||
try:
|
||||
if self.core._utils.getEpoch() - self.core.getBlockDate(self.hash) < 60:
|
||||
assert self.core._crypto.replayTimestampValidation(self.bmetadata['rply'])
|
||||
except (AssertionError, KeyError) as e:
|
||||
except (AssertionError, KeyError, TypeError) as e:
|
||||
if not self.bypassReplayCheck:
|
||||
# Zero out variables to prevent reading of replays
|
||||
self.bmetadata = {}
|
||||
|
|
|
@ -26,9 +26,8 @@ from onionrservices import bootstrapservice
|
|||
|
||||
plugin_name = 'clandestine'
|
||||
PLUGIN_VERSION = '0.0.0'
|
||||
|
||||
sys.path.insert(0, os.path.dirname(os.path.realpath(__file__)))
|
||||
from . import controlapi, peerserver
|
||||
import controlapi, peerserver
|
||||
flask_blueprint = controlapi.flask_blueprint
|
||||
direct_blueprint = peerserver.direct_blueprint
|
||||
|
||||
|
|
|
@ -45,9 +45,6 @@ def on_processblocks(api, data=None):
|
|||
# Generally fired by utils.
|
||||
myBlock = api.data['block']
|
||||
blockType = api.data['type']
|
||||
logger.info('blockType is ' + blockType)
|
||||
utils = api.get_utils()
|
||||
core = api.get_core()
|
||||
|
||||
# Process specific block types
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue