chainlib-eth

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

commit 6ad0edd8a866b7c9797c87ed68e5abde5fa52931
parent e053098652c0ad7337bea8eeff5f59ae6f6d8c4e
Author: lash <dev@holbrook.no>
Date:   Thu, 12 May 2022 18:07:33 +0000

Remove commented code

Diffstat:
Mchainlib/eth/runnable/get.py | 16----------------
1 file changed, 0 insertions(+), 16 deletions(-)

diff --git a/chainlib/eth/runnable/get.py b/chainlib/eth/runnable/get.py @@ -106,11 +106,6 @@ logg.debug('settings loaded:\n{}'.format(settings)) def get_transaction(conn, chain_spec, tx_hash, id_generator): o = transaction(tx_hash, id_generator=id_generator) -# j = JSONRPCRequest(id_generator=id_generator) -# o = j.template() -# o['method'] = 'eth_getTransactionByHash' -# o['params'].append(tx_hash) -# o = j.finalize(o) tx_src = conn.do(o) if tx_src == None: logg.error('Transaction {} not found'.format(tx_hash)) @@ -125,10 +120,6 @@ def get_transaction(conn, chain_spec, tx_hash, id_generator): rcpt = None o = receipt(tx_hash, id_generator=id_generator) -# o = j.template() -# o['method'] = 'eth_getTransactionReceipt' -# o['params'].append(tx_hash) -# o = j.finalize(o) rcpt = conn.do(o) if tx == None: @@ -147,13 +138,6 @@ def get_transaction(conn, chain_spec, tx_hash, id_generator): def get_address(conn, address, id_generator, height): o = code(address, height, id_generator=id_generator) -# j = JSONRPCRequest(id_generator=id_generator) -# o = j.template() -# o['method'] = 'eth_getCode' -# o['params'].append(address) -# height = to_blockheight_param(height) -# o['params'].append(height) -# o = j.finalize(o) r = conn.do(o) content = strip_0x(r, allow_empty=True)