Skip to content

Commit

Permalink
Allow rpc-quirk-flag argument and update submodule.
Browse files Browse the repository at this point in the history
  • Loading branch information
yarkinwho committed Nov 16, 2023
1 parent faa44fc commit 2811c9d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/rpc_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<uint32_t>()->default_value(silkworm::kEOSEVMLocalTestnetConfig.chain_id),
"override chain-id")
("rpc-quirk-flag", boost::program_options::value<uint64_t>()->default_value(0),
"rpc quirk flag")
;
}

Expand Down Expand Up @@ -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<std::string>();
const auto threads = options.at("rpc-threads").as<uint32_t>();
const auto max_readers = options.at("rpc-max-readers").as<uint32_t>();
const auto rpc_quirk_flag = options.at("rpc-quirk-flag").as<uint64_t>();

// 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
Expand Down Expand Up @@ -125,7 +128,8 @@ void rpc_plugin::plugin_initialize( const appbase::variables_map& options ) try
.eth_api_spec = options.at("api-spec").as<std::string>(),
.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));
Expand Down

0 comments on commit 2811c9d

Please sign in to comment.