Make sure syncer doesnt croak on invalidstate
This commit is contained in:
parent
b893aaa7b1
commit
24a71b6c7f
@ -34,7 +34,7 @@ arg_flags = chainlib.eth.cli.argflag_std_write
|
||||
argparser = chainlib.eth.cli.ArgumentParser(arg_flags, arg_long={'-s': '--send-rpc'})
|
||||
argparser.add_positional('source', required=False, type=str, help='Transaction source file')
|
||||
|
||||
local_arg_flags = chaind.cli.argflag_local_socket_client
|
||||
local_arg_flags = chaind.cli.argflag_local_socket_client | chaind.cli.ChaindFlag.TOKEN
|
||||
chaind.cli.process_flags(argparser, local_arg_flags)
|
||||
|
||||
args = argparser.parse_args()
|
||||
@ -105,9 +105,9 @@ class SocketSender:
|
||||
|
||||
def main():
|
||||
token_resolver = None
|
||||
if config.get('TOKEN_MODULE') != None:
|
||||
if settings.get('TOKEN_MODULE') != None:
|
||||
import importlib
|
||||
m = importlib.import_module(config.get('TOKEN_MODULE'))
|
||||
m = importlib.import_module(settings.get('TOKEN_MODULE'))
|
||||
m = m.TokenResolver
|
||||
else:
|
||||
from chaind.eth.token.gas import GasTokenResolver
|
||||
|
@ -28,7 +28,7 @@ class BaseTokenResolver:
|
||||
|
||||
|
||||
def get_values(self, gas_value, value, executable_address=None):
|
||||
nonce = self.nonce_oracle.next_nonce()
|
||||
nonce = self.nonce_oracle.get_nonce()
|
||||
|
||||
if executable_address == None:
|
||||
return (value, 0, nonce)
|
||||
|
@ -1,4 +1,4 @@
|
||||
chaind~=0.1.0
|
||||
chaind~=0.1.1
|
||||
hexathon~=0.1.5
|
||||
chainlib-eth~=0.1.0
|
||||
pyxdg~=0.27
|
||||
|
@ -1,6 +1,6 @@
|
||||
[metadata]
|
||||
name = chaind-eth
|
||||
version = 0.1.0
|
||||
version = 0.1.3
|
||||
description = Queue server for ethereum
|
||||
author = Louis Holbrook
|
||||
author_email = dev@holbrook.no
|
||||
@ -31,6 +31,7 @@ packages =
|
||||
chaind.eth
|
||||
chaind.eth.runnable
|
||||
chaind.eth.cli
|
||||
chaind.eth.token
|
||||
|
||||
[options.entry_points]
|
||||
console_scripts =
|
||||
|
Loading…
Reference in New Issue
Block a user