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

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 []