mirror of
https://github.com/twisterarmy/twister-data-guard.git
synced 2025-01-25 22:24:21 +00:00
add debug message for the last block indexing; increase default limits.
This commit is contained in:
parent
5deaca6220
commit
c608cc9e0d
@ -13,7 +13,7 @@ import sys, cPickle
|
||||
|
||||
dbFileName = "twisterDataGuard.pickle"
|
||||
nodeUserName = "twisterdataguard"
|
||||
blocksInStep = 10
|
||||
blocksInStep = 100
|
||||
|
||||
class MyDb:
|
||||
lastBlockHash = 0
|
||||
@ -65,6 +65,7 @@ if not dataLock:
|
||||
if block.has_key("nextblockhash"):
|
||||
nextHash = block["nextblockhash"]
|
||||
else:
|
||||
print "database is up to date..."
|
||||
break
|
||||
|
||||
cPickle.dump(db, open(dbFileName, "w"))
|
||||
|
Loading…
x
Reference in New Issue
Block a user