This commit is contained in:
Lex Berezhny 2020-07-14 23:13:10 -04:00
parent 2d8703bb8d
commit 2f81e9d374
2 changed files with 2 additions and 1 deletions

View file

@ -704,7 +704,7 @@ class Ledger(metaclass=LedgerRegistry):
batches.append([])
heights_in_batch = 1
batches[-1].append(txid)
if not len(batches[-1]):
if not batches[-1]:
batches.pop()
last_showed_synced_count = 0

View file

@ -35,6 +35,7 @@ disable=
too-many-statements,
too-many-nested-blocks,
too-many-public-methods,
too-many-return-statements,
too-many-instance-attributes,
protected-access,
unused-argument