+ added more tests
* fixed chdir home bug * fixed some tests creating normal data dir
This commit is contained in:
parent
665cb0c732
commit
60d2ebfaed
20 changed files with 139 additions and 55 deletions
|
@ -33,7 +33,7 @@ def add_to_block_DB(newHash, selfInsert=False, dataSaved=False):
|
|||
"""
|
||||
|
||||
if blockmetadata.has_block(newHash):
|
||||
raise
|
||||
raise BlockMetaEntryExists
|
||||
conn = sqlite3.connect(dbfiles.block_meta_db, timeout=onionrvalues.DATABASE_LOCK_TIMEOUT)
|
||||
c = conn.cursor()
|
||||
currentTime = epoch.get_epoch() + secrets.randbelow(301)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue