From a1973fd7e95408b33d9e781a526c35d86528f4be Mon Sep 17 00:00:00 2001 From: yarkin Date: Mon, 2 Dec 2024 22:33:33 +0800 Subject: [PATCH] Enable eth_gasPrice --- silkworm/silkrpc/commands/rpc_api_table.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/silkworm/silkrpc/commands/rpc_api_table.cpp b/silkworm/silkrpc/commands/rpc_api_table.cpp index 40e4f26b..3f72bf9a 100644 --- a/silkworm/silkrpc/commands/rpc_api_table.cpp +++ b/silkworm/silkrpc/commands/rpc_api_table.cpp @@ -114,7 +114,7 @@ void RpcApiTable::add_eth_handlers() { method_handlers_[http::method::k_eth_chainId] = &commands::RpcApi::handle_eth_chain_id; method_handlers_[http::method::k_eth_protocolVersion] = &commands::RpcApi::handle_eth_protocol_version; method_handlers_[http::method::k_eth_syncing] = &commands::RpcApi::handle_eth_syncing; - //method_handlers_[http::method::k_eth_gasPrice] = &commands::RpcApi::handle_eth_gas_price; + method_handlers_[http::method::k_eth_gasPrice] = &commands::RpcApi::handle_eth_gas_price; method_handlers_[http::method::k_eth_getBlockByHash] = &commands::RpcApi::handle_eth_get_block_by_hash; method_handlers_[http::method::k_eth_getBlockByNumber] = &commands::RpcApi::handle_eth_get_block_by_number; method_handlers_[http::method::k_eth_getBlockTransactionCountByHash] = &commands::RpcApi::handle_eth_get_block_transaction_count_by_hash;