diff --git a/external/silkworm b/external/silkworm index a8ca582..8a04b5d 160000 --- a/external/silkworm +++ b/external/silkworm @@ -1 +1 @@ -Subproject commit a8ca582f464ac76c43cd4f573b124a5b6d9f062d +Subproject commit 8a04b5d37b3a93b26587c897c94f62359b4e109c diff --git a/src/rpc_plugin.cpp b/src/rpc_plugin.cpp index 669b0e9..03bc2c1 100644 --- a/src/rpc_plugin.cpp +++ b/src/rpc_plugin.cpp @@ -42,6 +42,8 @@ void rpc_plugin::set_program_options( appbase::options_description& cli, appbase "comma separated api spec, possible values: debug,engine,eth,net,parity,erigon,txpool,trace,web3") ("chain-id", boost::program_options::value()->default_value(silkworm::kEOSEVMLocalTestnetConfig.chain_id), "override chain-id") + ("rpc-quirk-flag", boost::program_options::value()->default_value(0), + "rpc quirk flag") ; } @@ -76,6 +78,7 @@ void rpc_plugin::plugin_initialize( const appbase::variables_map& options ) try const auto& engine_port = options.at("rpc-engine-port").as(); const auto threads = options.at("rpc-threads").as(); const auto max_readers = options.at("rpc-max-readers").as(); + const auto rpc_quirk_flag = options.at("rpc-quirk-flag").as(); // TODO when we resolve issues with silkrpc compiling in eos-evm-node then remove // the `eos-evm-node` options and use silk_engine for the address and configuration @@ -125,7 +128,8 @@ void rpc_plugin::plugin_initialize( const appbase::variables_map& options ) try .eth_api_spec = options.at("api-spec").as(), .private_api_addr = node_port, .num_workers = threads, - .skip_protocol_check = true + .skip_protocol_check = true, + .rpc_quirk_flag = rpc_quirk_flag }; my.reset(new rpc_plugin_impl(settings));