onionr can now import blocks from disk
This commit is contained in:
parent
5813190cc4
commit
193845104e
3 changed files with 25 additions and 4 deletions
|
@ -253,7 +253,7 @@ class Core:
|
|||
|
||||
return
|
||||
|
||||
def addToBlockDB(self, newHash, selfInsert=False):
|
||||
def addToBlockDB(self, newHash, selfInsert=False, dataSaved=False):
|
||||
'''
|
||||
Add a hash value to the block db
|
||||
|
||||
|
@ -266,7 +266,7 @@ class Core:
|
|||
conn = sqlite3.connect(self.blockDB)
|
||||
c = conn.cursor()
|
||||
currentTime = math.floor(time.time())
|
||||
if selfInsert:
|
||||
if selfInsert or dataSaved:
|
||||
selfInsert = 1
|
||||
else:
|
||||
selfInsert = 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue