From 1bbf26ceb1c8676fd061f081ffbe5c292dc7e3cc Mon Sep 17 00:00:00 2001 From: Carlosokumu Date: Fri, 6 Dec 2024 15:08:51 +0300 Subject: [PATCH] add sleep after each execution --- parse.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/parse.py b/parse.py index 9414849..5157325 100644 --- a/parse.py +++ b/parse.py @@ -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 ' @@ -381,7 +381,7 @@ def load_gas(address,nonce): result = subprocess.run(command, shell=True, capture_output=True, text=True) if result.returncode != 0: raise subprocess.CalledProcessError(result.returncode, command, output=result.stdout, stderr=result.stderr) - + message = f"Added some gas to {address}" printMessage(message) @@ -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)