Filter out final states from upcoming in network exceptions

This commit is contained in:
lash 2022-04-30 16:44:37 +00:00
parent 14fce6f63f
commit 96bdca20cc
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ class ChaindFsAdapter(ChaindAdapter):
def upcoming(self, limit=0):
if limit > 0:
r = self.store.by_state(self.store.IN_NETWORK)
r = self.store.by_state(state=self.store.IN_NETWORK, not_state=self.store.FINAL)
limit -= len(r)
if limit <= 0:
return []