Skip to content

Commit 896c520

Browse files
committed
rpc support
1 parent 16fc2a0 commit 896c520

3 files changed

Lines changed: 710 additions & 1 deletion

File tree

apps/evm/cmd/run.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,8 @@ func createExecutionClient(cmd *cobra.Command, db datastore.Batching, tracingEna
226226
return nil, fmt.Errorf("failed to unmarshal genesis: %w", err)
227227
}
228228

229-
return evm.NewEngineExecutionClientWithGeth(&genesis, feeRecipient, db, logger)
229+
rpcAddress, _ := cmd.Flags().GetString(evm.FlagEVMRPCAddress)
230+
return evm.NewEngineExecutionClientWithGeth(&genesis, feeRecipient, db, rpcAddress, logger)
230231
}
231232

232233
// Read execution client parameters from flags
@@ -282,4 +283,5 @@ func addFlags(cmd *cobra.Command) {
282283

283284
cmd.Flags().Bool(evm.FlagEVMInProcessGeth, false, "Use in-process Geth for EVM execution instead of external execution client")
284285
cmd.Flags().String(evm.FlagEVMGenesisPath, "", "EVM genesis path for Geth")
286+
cmd.Flags().String(evm.FlagEVMRPCAddress, "", "Address for in-process Geth JSON-RPC server (e.g., 127.0.0.1:8545)")
285287
}

0 commit comments

Comments
 (0)