connector
This commit is contained in:
parent
6ee2c88682
commit
84b702e443
@ -76,6 +76,8 @@ class Connector:
|
||||
self.tx_processing_time = 0
|
||||
self.non_cached_blocks = 0
|
||||
self.total_received_tx_time = 0
|
||||
self.coins = 0
|
||||
self.destroyed_coins = 0
|
||||
self.tt = 0
|
||||
self.yy = 0
|
||||
self.start_time = time.time()
|
||||
@ -436,8 +438,10 @@ class Connector:
|
||||
self.log.info("total tx fetch time %s;" % self.total_received_tx_time)
|
||||
self.log.info("total blocks processing time %s;" % self.blocks_processing_time)
|
||||
self.log.info("total time %s;" % (time.time() - self.start_time ,))
|
||||
self.log.info("yy fetch time >>%s;" % self.yy)
|
||||
self.log.info("tt fetch time >>%s;" % self.tt)
|
||||
self.log.info("yy/tt fetch time >>%s %s;" % (self.yy, self.tt))
|
||||
self.log.info("coins/destroyed unspent %s/%s %s;" % (self.coins,
|
||||
self.destroyed_coins,
|
||||
self.coins - self.destroyed_coins))
|
||||
|
||||
# after block added handler
|
||||
if self.after_block_handler and not self.cache_loading:
|
||||
@ -606,6 +610,7 @@ class Connector:
|
||||
if self.utxo:
|
||||
stxo, missed = dict(), set()
|
||||
for i in tx["vIn"]:
|
||||
self.destroyed_coins += 1
|
||||
inp = tx["vIn"][i]
|
||||
outpoint = b"".join((inp["txId"], int_to_bytes(inp["vOut"])))
|
||||
try:
|
||||
@ -637,6 +642,7 @@ class Connector:
|
||||
|
||||
if self.utxo:
|
||||
for i in tx["vOut"]:
|
||||
self.coins += 1
|
||||
if "_s_" in tx["vOut"][i]:
|
||||
self.tt += 1
|
||||
else:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user