parent
f53e955dde
commit
ef2703177e
@ -511,6 +511,11 @@ class BlockProcessor(server.db.DB):
|
|||||||
for key, value in puts.items():
|
for key, value in puts.items():
|
||||||
batch.put(key, value)
|
batch.put(key, value)
|
||||||
|
|
||||||
|
self.fs_height = self.height
|
||||||
|
self.fs_tx_count = self.tx_count
|
||||||
|
assert not self.headers
|
||||||
|
assert not self.tx_hashes
|
||||||
|
|
||||||
self.logger.info('removed {:,d} history entries from {:,d} addresses'
|
self.logger.info('removed {:,d} history entries from {:,d} addresses'
|
||||||
.format(nremoves, len(hash168s)))
|
.format(nremoves, len(hash168s)))
|
||||||
|
|
||||||
@ -643,10 +648,6 @@ class BlockProcessor(server.db.DB):
|
|||||||
self.height -= 1
|
self.height -= 1
|
||||||
self.tx_counts.pop()
|
self.tx_counts.pop()
|
||||||
|
|
||||||
self.fs_height = self.height
|
|
||||||
assert not self.headers
|
|
||||||
assert not self.tx_hashes
|
|
||||||
|
|
||||||
self.logger.info('backed up to height {:,d}'.format(self.height))
|
self.logger.info('backed up to height {:,d}'.format(self.height))
|
||||||
|
|
||||||
self.touched.update(touched)
|
self.touched.update(touched)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user