chainsyncer

Blockchain syncer driver
Log | Files | Refs | LICENSE

commit 1634307cc181cd25df78295e3e78b964c97f371f
parent 6f1ad9cb76a950071cb53aaef5ce9d61741a170e
Author: lash <dev@holbrook.no>
Date:   Sun, 13 Aug 2023 18:41:23 +0100

Add info logging for block and tx processing

Diffstat:
Mchainsyncer/driver/base.py | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/chainsyncer/driver/base.py b/chainsyncer/driver/base.py @@ -116,6 +116,7 @@ class SyncDriver: break if self.block_callback != None: self.block_callback(conn, block) + logg.info('syncing block {}: {}'.format(block.number, block.hash)) try: self.process(conn, item, block) @@ -133,6 +134,7 @@ class SyncDriver: def process_single(self, conn, block, tx): + logg.info('processing tx {}: {}'.format(tx.index, tx.hash)) self.session.filter(conn, block, tx)