From c608cc9e0d79cca040b6f835a2dcc206ab18ed12 Mon Sep 17 00:00:00 2001 From: D4708 Date: Sat, 26 Jun 2021 19:37:18 +0300 Subject: [PATCH] add debug message for the last block indexing; increase default limits. --- follower.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/follower.py b/follower.py index ec41ff6..281b46d 100644 --- a/follower.py +++ b/follower.py @@ -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"))