connector
This commit is contained in:
parent
2a970b5735
commit
c80bd167a6
@ -748,8 +748,8 @@ class UTXO():
|
|||||||
async def save_utxo(self, block_height):
|
async def save_utxo(self, block_height):
|
||||||
# save to db tail from cache
|
# save to db tail from cache
|
||||||
block_height -= self.maturity
|
block_height -= self.maturity
|
||||||
if block_height > 0 and not self.save_process:
|
c = len(self.cached) - self._cache_size
|
||||||
c = len(self.cached) - self._cache_size
|
if block_height > 0 and not self.save_process and c > 0:
|
||||||
try:
|
try:
|
||||||
self.save_process = True
|
self.save_process = True
|
||||||
k = []
|
k = []
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user