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):
|
def upcoming(self, limit=0):
|
||||||
if 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)
|
limit -= len(r)
|
||||||
if limit <= 0:
|
if limit <= 0:
|
||||||
return []
|
return []
|
||||||
|
Loading…
Reference in New Issue
Block a user