commit 96bdca20ccd10a46740f8b3664576181806f7c40 parent 14fce6f63fc74fc459b38afd7e4eae28be707c49 Author: lash <dev@holbrook.no> Date: Sat, 30 Apr 2022 16:44:37 +0000 Filter out final states from upcoming in network exceptions Diffstat:
M | chaind/adapters/fs.py | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/chaind/adapters/fs.py b/chaind/adapters/fs.py @@ -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 []