connector

This commit is contained in:
4tochka 2019-05-07 18:16:37 +04:00
parent 2fd2776f6d
commit ffd9baac83

View File

@ -393,11 +393,12 @@ class Connector:
"cache size %s M;" % (self.non_cached_blocks, "cache size %s M;" % (self.non_cached_blocks,
self.block_preload.len(), self.block_preload.len(),
round(self.block_preload._store_size / 1024 / 1024, 2))) round(self.block_preload._store_size / 1024 / 1024, 2)))
self.log.info( if self.block_preload._store:
"cache first %s; " self.log.info(
"cache last %s;" % ( "cache first %s; "
next(iter(self.block_preload._store)), "cache last %s;" % (
next(reversed(self.block_preload._store)))) next(iter(self.block_preload._store)),
next(reversed(self.block_preload._store))))
self.log.info("saved utxo block %s; " self.log.info("saved utxo block %s; "
"saved utxo %s; " "saved utxo %s; "