chainlib-eth

Ethereum implementation of the chainlib interface
Log | Files | Refs | README | LICENSE

commit f9a715e968a5cbb047dbeea8fbc5a68c239c1997
parent 43ebc8d99206dbaf21c4f34c908ff3e86b2749de
Author: lash <dev@holbrook.no>
Date:   Wed,  1 Mar 2023 22:48:22 +0000

Add dialect filter to info and block cli commands

Diffstat:
MCHANGELOG | 2++
Mchainlib/eth/runnable/block.py | 2+-
Mchainlib/eth/runnable/info.py | 4++--
Msetup.cfg | 2+-
4 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/CHANGELOG b/CHANGELOG @@ -1,3 +1,5 @@ +- 0.4.17 + * Add dialect filter to info and block cli tools - 0.4.16 * Add dynamic bytes encoding in contracts module - 0.4.15 diff --git a/chainlib/eth/runnable/block.py b/chainlib/eth/runnable/block.py @@ -167,7 +167,7 @@ def get_block_hash(conn, block_hash, id_generator): def block_process(block_src): - return Block(block_src) + return Block(block_src, dialect_filter=settings.get('RPC_DIALECT_FILTER')) def main(): diff --git a/chainlib/eth/runnable/info.py b/chainlib/eth/runnable/info.py @@ -132,7 +132,7 @@ def main(): o = block_by_number(first_block_number, False, id_generator=settings.get('RPC_ID_GENERATOR')) r = settings.get('CONN').do(o) - last_block = Block(r) + last_block = Block(r, dialect_filter=settings.get('RPC_DIALECT_FILTER')) last_timestamp = last_block.timestamp if config.true('_LONG'): @@ -141,7 +141,7 @@ def main(): for i in range(BLOCK_SAMPLES): o = block_by_number(first_block_number-i, False, id_generator=settings.get('RPC_ID_GENERATOR')) r = settings.get('CONN').do(o) - block = Block(r) + block = Block(r, dialect_filter=settings.get('RPC_DIALECT_FILTER')) aggr_time += last_block.timestamp - block.timestamp gas_limit = int(r['gasLimit'], 16) diff --git a/setup.cfg b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = chainlib-eth -version = 0.4.16 +version = 0.4.17 description = Ethereum implementation of the chainlib interface author = Louis Holbrook author_email = dev@holbrook.no