Commit 2a9f8dca authored by OptimismBot's avatar OptimismBot Committed by GitHub

Merge pull request #7409 from ethereum-optimism/aj/stop-geth-on-failure

devnet: Ensure geth terminates if devnet-allocs fails
parents bd7e7965 5c7993b8
...@@ -156,6 +156,7 @@ def devnet_l1_genesis(paths): ...@@ -156,6 +156,7 @@ def devnet_l1_genesis(paths):
'--rpc.allow-unprotected-txs' '--rpc.allow-unprotected-txs'
]) ])
try:
forge = ChildProcess(deploy_contracts, paths) forge = ChildProcess(deploy_contracts, paths)
forge.start() forge.start()
forge.join() forge.join()
...@@ -168,6 +169,7 @@ def devnet_l1_genesis(paths): ...@@ -168,6 +169,7 @@ def devnet_l1_genesis(paths):
allocs = response['result'] allocs = response['result']
write_json(paths.allocs_path, allocs) write_json(paths.allocs_path, allocs)
finally:
geth.terminate() geth.terminate()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment