From 8345396beec11bf945034a9d5e9d81b508bed0b2 Mon Sep 17 00:00:00 2001 From: Haofan Zheng Date: Mon, 4 Mar 2024 02:57:19 -0800 Subject: [PATCH] Fixed geth bin path in init-geth --- GethNode/init-geth | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/GethNode/init-geth b/GethNode/init-geth index 106ec2b..d6a023c 100755 --- a/GethNode/init-geth +++ b/GethNode/init-geth @@ -31,7 +31,7 @@ def RunExecCltGeth() -> subprocess.Popen: gethAddArgs = shlex.split(envVal) gethCmd = [ - '/usr/bin/geth', + '/opt/geth/geth', '--authrpc.jwtsecret', '/geth/jwt.hex', ] + gethAddArgs @@ -196,8 +196,10 @@ def main(): TERMINATE_EVENT.wait(1.0) finally: # terminate processes - TerminateProc(consCltProc) - TerminateProc(execCltProc) + if execCltProc is not None: + TerminateProc(execCltProc) + if consCltProc is not None: + TerminateProc(consCltProc) if valiCltProc is not None: TerminateProc(valiCltProc)