Skip to content

Commit

Permalink
Add server flag to besu
Browse files Browse the repository at this point in the history
Add the server flag to besu.  As it is server only refuse to run unless
the `--evm-server` flag is set.

Signed-off-by: Danno Ferrin <danno@numisight.com>
  • Loading branch information
shemnon committed May 18, 2024
1 parent 0dee752 commit 060cba9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/evm_transition_tool/besu.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def __init__(
*,
binary: Optional[Path] = None,
trace: bool = False,
server: bool = True,
):
super().__init__(binary=binary, trace=trace)
args = [str(self.binary), "t8n", "--help"]
Expand All @@ -50,6 +51,8 @@ def __init__(
raise Exception(f"Unexpected exception calling evm tool: {e}.")
self.help_string = result.stdout
self.besu_trace_dir = tempfile.TemporaryDirectory() if self.trace else None
if not server:
raise Exception("Besu must be run in server mode (use the --evm-server option)")

def start_server(self):
"""
Expand Down

0 comments on commit 060cba9

Please sign in to comment.