From 8c79cd9583ebdaa5fdf293b63ec9bea60dce0847 Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Sat, 22 Dec 2018 15:48:05 -0600 Subject: [PATCH] * removed randomized block insert times for now * listconn has a new alias --- onionr/core.py | 4 ++-- onionr/onionr.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/onionr/core.py b/onionr/core.py index a1d78e0a..1e698a4c 100644 --- a/onionr/core.py +++ b/onionr/core.py @@ -260,7 +260,7 @@ class Core: return conn = sqlite3.connect(self.blockDB, timeout=10) c = conn.cursor() - currentTime = self._utils.getEpoch() + currentTime = self._utils.getEpoch() + self._crypto.secrets.randbelow(301) if selfInsert or dataSaved: selfInsert = 1 else: @@ -763,7 +763,7 @@ class Core: metadata['meta'] = jsonMeta metadata['sig'] = signature metadata['signer'] = signer - metadata['time'] = self._utils.getRoundedEpoch() + self._crypto.secrets.randbelow(301) + metadata['time'] = self._utils.getRoundedEpoch() # ensure expire is integer and of sane length if type(expire) is not type(None): diff --git a/onionr/onionr.py b/onionr/onionr.py index b9dd6260..aadceb56 100755 --- a/onionr/onionr.py +++ b/onionr/onionr.py @@ -181,6 +181,7 @@ class Onionr: 'getfile': self.getFile, 'listconn': self.listConn, + 'list-conn': self.listConn, 'import-blocks': self.onionrUtils.importNewBlocks, 'importblocks': self.onionrUtils.importNewBlocks,