diff --git a/onionr/core.py b/onionr/core.py index d0a9bf0e..6617f1e8 100644 --- a/onionr/core.py +++ b/onionr/core.py @@ -134,6 +134,8 @@ class Core: '''add a hash value to the block db (should be in hex format)''' if not os.path.exists(self.blockDB): raise Exception('Block db does not exist') + if self._utils.hasBlock(newHash): + return conn = sqlite3.connect(self.blockDB) c = conn.cursor() currentTime = math.floor(time.time())