Upgrade chainlib
This commit is contained in:
parent
6ee3ea4638
commit
5f9634d5a4
@ -91,10 +91,10 @@ class EthHTTPConnection(JSONRPCHTTPConnection):
|
|||||||
if e != None:
|
if e != None:
|
||||||
e = snake_and_camel(e)
|
e = snake_and_camel(e)
|
||||||
# In openethereum we encounter receipts that have NONE block hashes and numbers. WTF...
|
# In openethereum we encounter receipts that have NONE block hashes and numbers. WTF...
|
||||||
|
logg.debug('({}) poll receipt received {}'.format(str(self), r))
|
||||||
if e['block_hash'] == None:
|
if e['block_hash'] == None:
|
||||||
logg.warning('poll receipt attempt {} returned receipt but with a null block hash value!'.format(i))
|
logg.warning('poll receipt attempt {} returned receipt but with a null block hash value!'.format(i))
|
||||||
else:
|
else:
|
||||||
logg.debug('({}) poll receipt completed {}'.format(str(self), r))
|
|
||||||
logg.debug('e {}'.format(strip_0x(e['status'])))
|
logg.debug('e {}'.format(strip_0x(e['status'])))
|
||||||
if strip_0x(e['status']) == '00':
|
if strip_0x(e['status']) == '00':
|
||||||
raise RevertEthException(tx_hash_hex)
|
raise RevertEthException(tx_hash_hex)
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
[rpc]
|
[rpc]
|
||||||
http_provider = http://localhost:8545
|
|
||||||
provider = http://localhost:8545
|
provider = http://localhost:8545
|
||||||
auth =
|
auth =
|
||||||
credentials =
|
credentials =
|
||||||
@ -7,7 +6,7 @@ dialect = default
|
|||||||
scheme = http
|
scheme = http
|
||||||
|
|
||||||
[chain]
|
[chain]
|
||||||
spec = evm:ethereum:1
|
spec = evm:berlin:1:ethereum
|
||||||
|
|
||||||
[wallet]
|
[wallet]
|
||||||
key_file =
|
key_file =
|
||||||
|
@ -63,8 +63,12 @@ send = config.true('_RPC_SEND')
|
|||||||
def balance(address, id_generator):
|
def balance(address, id_generator):
|
||||||
o = gas_balance(address, id_generator=id_generator)
|
o = gas_balance(address, id_generator=id_generator)
|
||||||
r = conn.do(o)
|
r = conn.do(o)
|
||||||
hx = strip_0x(r)
|
try:
|
||||||
return int(hx, 16)
|
balance = int(r)
|
||||||
|
except ValueError:
|
||||||
|
balance = strip_0x(r)
|
||||||
|
balance = int(balance, 16)
|
||||||
|
return balance
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
@ -3,5 +3,5 @@ pysha3==1.0.2
|
|||||||
hexathon~=0.0.1a8
|
hexathon~=0.0.1a8
|
||||||
websocket-client==0.57.0
|
websocket-client==0.57.0
|
||||||
potaahto~=0.0.1a1
|
potaahto~=0.0.1a1
|
||||||
chainlib==0.0.10a6
|
chainlib==0.0.10a9
|
||||||
confini>=0.4.1a1,<0.5.0
|
confini>=0.4.2rc3,<0.5.0
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[metadata]
|
[metadata]
|
||||||
name = chainlib-eth
|
name = chainlib-eth
|
||||||
version = 0.0.10a15
|
version = 0.0.10a18
|
||||||
description = Ethereum implementation of the chainlib interface
|
description = Ethereum implementation of the chainlib interface
|
||||||
author = Louis Holbrook
|
author = Louis Holbrook
|
||||||
author_email = dev@holbrook.no
|
author_email = dev@holbrook.no
|
||||||
|
Loading…
Reference in New Issue
Block a user