From 7b76306b0f745d881c54f68a1b2a3fb07fcba144 Mon Sep 17 00:00:00 2001 From: Barnabas Busa Date: Tue, 3 Dec 2024 11:31:43 +0100 Subject: [PATCH] fix: add miner as an api --- src/el/op-besu/op_besu_launcher.star | 4 ++-- src/el/op-erigon/op_erigon_launcher.star | 2 +- src/el/op-geth/op_geth_launcher.star | 4 ++-- src/el/op-nethermind/op_nethermind_launcher.star | 2 +- src/el/op-reth/op_reth_launcher.star | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/el/op-besu/op_besu_launcher.star b/src/el/op-besu/op_besu_launcher.star index 63d35091..906c2bdf 100644 --- a/src/el/op-besu/op_besu_launcher.star +++ b/src/el/op-besu/op_besu_launcher.star @@ -182,13 +182,13 @@ def get_config( "--rpc-http-enabled=true", "--rpc-http-host=0.0.0.0", "--rpc-http-port={0}".format(RPC_PORT_NUM), - "--rpc-http-api=ADMIN,CLIQUE,ETH,NET,DEBUG,TXPOOL,ENGINE,TRACE,WEB3", + "--rpc-http-api=ADMIN,CLIQUE,ETH,NET,DEBUG,TXPOOL,ENGINE,TRACE,WEB3,MINER", "--rpc-http-cors-origins=*", "--rpc-http-max-active-connections=300", "--rpc-ws-enabled=true", "--rpc-ws-host=0.0.0.0", "--rpc-ws-port={0}".format(WS_PORT_NUM), - "--rpc-ws-api=ADMIN,CLIQUE,ETH,NET,DEBUG,TXPOOL,ENGINE,TRACE,WEB3", + "--rpc-ws-api=ADMIN,CLIQUE,ETH,NET,DEBUG,TXPOOL,ENGINE,TRACE,WEB3,MINER", "--p2p-enabled=true", "--p2p-host=" + ethereum_package_constants.PRIVATE_IP_ADDRESS_PLACEHOLDER, "--p2p-port={0}".format(discovery_port), diff --git a/src/el/op-erigon/op_erigon_launcher.star b/src/el/op-erigon/op_erigon_launcher.star index 5eb18d36..f0fb8142 100644 --- a/src/el/op-erigon/op_erigon_launcher.star +++ b/src/el/op-erigon/op_erigon_launcher.star @@ -177,7 +177,7 @@ def get_config( "--http.addr=0.0.0.0", "--http.vhosts=*", "--http.corsdomain=*", - "--http.api=admin,engine,net,eth,web3,debug", + "--http.api=admin,engine,net,eth,web3,debug,miner", "--ws", "--ws.port={0}".format(WS_PORT_NUM), "--allow-insecure-unlock", diff --git a/src/el/op-geth/op_geth_launcher.star b/src/el/op-geth/op_geth_launcher.star index 76ce7ad2..1033377a 100644 --- a/src/el/op-geth/op_geth_launcher.star +++ b/src/el/op-geth/op_geth_launcher.star @@ -187,11 +187,11 @@ def get_config( "--http.addr=0.0.0.0", "--http.vhosts=*", "--http.corsdomain=*", - "--http.api=admin,engine,net,eth,web3,debug", + "--http.api=admin,engine,net,eth,web3,debug,miner", "--ws", "--ws.addr=0.0.0.0", "--ws.port={0}".format(WS_PORT_NUM), - "--ws.api=admin,engine,net,eth,web3,debug", + "--ws.api=admin,engine,net,eth,web3,debug,miner", "--ws.origins=*", "--allow-insecure-unlock", "--authrpc.port={0}".format(ENGINE_RPC_PORT_NUM), diff --git a/src/el/op-nethermind/op_nethermind_launcher.star b/src/el/op-nethermind/op_nethermind_launcher.star index 6d0beae0..526e51ca 100644 --- a/src/el/op-nethermind/op_nethermind_launcher.star +++ b/src/el/op-nethermind/op_nethermind_launcher.star @@ -170,7 +170,7 @@ def get_config( "--datadir=" + EXECUTION_DATA_DIRPATH_ON_CLIENT_CONTAINER, "--Init.WebSocketsEnabled=true", "--JsonRpc.Enabled=true", - "--JsonRpc.EnabledModules=net,eth,consensus,subscribe,web3,admin", + "--JsonRpc.EnabledModules=net,eth,consensus,subscribe,web3,admin,miner", "--JsonRpc.Host=0.0.0.0", "--JsonRpc.Port={0}".format(RPC_PORT_NUM), "--JsonRpc.WebSocketsPort={0}".format(WS_PORT_NUM), diff --git a/src/el/op-reth/op_reth_launcher.star b/src/el/op-reth/op_reth_launcher.star index 3d977201..86b65a47 100644 --- a/src/el/op-reth/op_reth_launcher.star +++ b/src/el/op-reth/op_reth_launcher.star @@ -175,11 +175,11 @@ def get_config( "--http.corsdomain=*", # WARNING: The admin info endpoint is enabled so that we can easily get ENR/enode, which means # that users should NOT store private information in these Kurtosis nodes! - "--http.api=admin,net,eth,web3,debug,trace", + "--http.api=admin,net,eth,web3,debug,trace,miner", "--ws", "--ws.addr=0.0.0.0", "--ws.port={0}".format(WS_PORT_NUM), - "--ws.api=net,eth", + "--ws.api=net,eth,miner", "--ws.origins=*", "--nat=extip:" + ethereum_package_constants.PRIVATE_IP_ADDRESS_PLACEHOLDER, "--authrpc.port={0}".format(ENGINE_RPC_PORT_NUM),