Skip to content

Commit dbb2ffb

Browse files
authored
Merge pull request #114 from eosnetworkfoundation/yarkin/trace_quirk_config
[0.6] Add quirk mode for trace api calls, support blockhash in eth_call
2 parents faa44fc + 22cbbbc commit dbb2ffb

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

external/silkworm

src/rpc_plugin.cpp

+5-1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ void rpc_plugin::set_program_options( appbase::options_description& cli, appbase
4242
"comma separated api spec, possible values: debug,engine,eth,net,parity,erigon,txpool,trace,web3")
4343
("chain-id", boost::program_options::value<uint32_t>()->default_value(silkworm::kEOSEVMLocalTestnetConfig.chain_id),
4444
"override chain-id")
45+
("rpc-quirk-flag", boost::program_options::value<uint64_t>()->default_value(0),
46+
"rpc quirk flag")
4547
;
4648
}
4749

@@ -76,6 +78,7 @@ void rpc_plugin::plugin_initialize( const appbase::variables_map& options ) try
7678
const auto& engine_port = options.at("rpc-engine-port").as<std::string>();
7779
const auto threads = options.at("rpc-threads").as<uint32_t>();
7880
const auto max_readers = options.at("rpc-max-readers").as<uint32_t>();
81+
const auto rpc_quirk_flag = options.at("rpc-quirk-flag").as<uint64_t>();
7982

8083
// TODO when we resolve issues with silkrpc compiling in eos-evm-node then remove
8184
// 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
125128
.eth_api_spec = options.at("api-spec").as<std::string>(),
126129
.private_api_addr = node_port,
127130
.num_workers = threads,
128-
.skip_protocol_check = true
131+
.skip_protocol_check = true,
132+
.rpc_quirk_flag = rpc_quirk_flag
129133
};
130134

131135
my.reset(new rpc_plugin_impl(settings));

0 commit comments

Comments
 (0)