connector
This commit is contained in:
parent
094da53d0d
commit
0cae41341c
@ -426,7 +426,7 @@ class Connector:
|
||||
self.utxo.deleted_utxo,
|
||||
self.utxo.loaded_utxo
|
||||
))
|
||||
self.log.debug("Preload coins chached/destoyed -> %s-%s [%s];" % (self.yy, self.aa, self.tt))
|
||||
self.log.debug("Preload coins cached/destoyed -> %s-%s [%s];" % (self.yy, self.aa, self.tt))
|
||||
self.log.debug("Coins %s; destroyed %s; unspent %s;" % (self.coins,
|
||||
self.destroyed_coins,
|
||||
self.coins - self.destroyed_coins))
|
||||
|
||||
@ -103,7 +103,9 @@ class UTXO():
|
||||
|
||||
batch = rocksdb.WriteBatch()
|
||||
[batch.delete(k) for k in self.pending_deleted]
|
||||
[batch.put(k[0], k[1]) for k in self.pending_utxo]
|
||||
for k in self.pending_utxo:
|
||||
batch.put(k[0], k[1])
|
||||
self.log.critical(str(k))
|
||||
batch.put(b"last_block", int_to_bytes(self.checkpoint))
|
||||
batch.put(b"last_cached_block", int_to_bytes(self.deleted_last_block))
|
||||
self.db.write(batch)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user