Filter out final states from upcoming in network exceptions
This commit is contained in:
parent
14fce6f63f
commit
96bdca20cc
@ -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 []
|
||||
|
Loading…
Reference in New Issue
Block a user