4
0
mirror of git://holbrook.no/eth-monitor.git synced 2024-11-21 20:06:46 +01:00

Use chain spec instead of chain str

This commit is contained in:
lash 2022-01-30 23:22:56 +00:00
parent 2ad885c2be
commit 1a8fe9551b
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746
2 changed files with 3 additions and 2 deletions

View File

@ -1,3 +1,5 @@
- 0.0.6
* Pass chain spec instead of chain str to output renderers
- 0.0.5
* Remove faulty module dependency in sync runnable script
- 0.0.4

View File

@ -22,14 +22,13 @@ class OutFilter(RuledFilter):
self.renderers = renderers
self.c = 0
self.chain_spec = chain_spec
self.chain_spec_str = str(chain_spec)
def filter(self, conn, block, tx, db_session=None):
s = None
for renderer in self.renderers:
s = renderer.apply(self.c, s, self.chain_spec_str, conn, block, tx)
s = renderer.apply(self.c, s, self.chain_spec, conn, block, tx)
if s != None:
break