From 1c89ae476570332bf1d228597fb12e786f63a01c Mon Sep 17 00:00:00 2001 From: 4tochka Date: Mon, 13 May 2019 17:29:23 +0400 Subject: [PATCH] connector --- pybtc/connector/utxo.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pybtc/connector/utxo.py b/pybtc/connector/utxo.py index 10bbdb5..aed68e5 100644 --- a/pybtc/connector/utxo.py +++ b/pybtc/connector/utxo.py @@ -48,7 +48,7 @@ class UTXO(): self.save_process = True try: - self.log.critical("cached " + str(len(self.cached)) ) + # self.log.critical("cached " + str(len(self.cached)) ) checkpoint = self.checkpoints.popleft() lb = 0 block_changed = False @@ -84,8 +84,8 @@ class UTXO(): self.cached.append({i: self.pending_saved[i]}) self.log.critical("checkpoint not found " + str(self.checkpoints)) return - self.log.critical("checkpoints " + str(self.checkpoints) + " > " + str(checkpoint)) - self.log.critical("found checkpoint " + str(lb) + " len " + str(len(utxo)) + " cached " + str(len(self.cached)) ) + # self.log.critical("checkpoints " + str(self.checkpoints) + " > " + str(checkpoint)) + # self.log.critical("found checkpoint " + str(lb) + " len " + str(len(utxo)) + " cached " + str(len(self.cached)) ) # self.log.critical(">" + str(len(self.cached))) # @@ -115,7 +115,7 @@ class UTXO(): # i[2])))) # insert to db - self.log.critical("start " + str(len(utxo))) + # self.log.critical("start " + str(len(utxo))) d = set() async with self._db_pool.acquire() as conn: async with conn.transaction(): @@ -129,7 +129,7 @@ class UTXO(): "WHERE name = 'last_block';", lb) self.saved_utxo += len(utxo) self.deleted_utxo += len(d) - self.log.critical("saved " + str(len(utxo))) + self.log.warning("saved utxo -> " + str(len(utxo))) # # remove from cache # for key in a: # try: