add sleep after each execution

This commit is contained in:
Carlosokumu 2024-12-06 15:08:51 +03:00
parent c5ff6f3bf1
commit 1bbf26ceb1
Signed by: carlos
GPG Key ID: 7BD6BC8160A5C953

View File

@ -311,6 +311,7 @@ class Router:
pi = Pipe(False)
po = Process(target=self.__wrap, args=(cmd.i, fn, cmd,))
self.__r[cmd.i] = (po, pi,)
time.sleep(5)
po.start()
@ -373,7 +374,6 @@ def load_gas(address,nonce):
command = (
f'cast send {address} '
f'--value {gas_topup} '
f'--nonce {nonce} '
f'--private-key {master_private_key} '
f'--rpc-url {rpc} '
f' --json '
@ -421,7 +421,7 @@ def key_create_handler(cmd):
else:
private_key = cmd.k
address = w3.eth.account.from_key(private_key).address
time.sleep(5)
load_gas(address,nonce)
store_key_in_keystore(private_key, key_name, address)