Skip to content

Commit

Permalink
Merge pull request #198 from eosnetworkfoundation/kayan_rm_etherbase_…
Browse files Browse the repository at this point in the history
…setting

remove etherbase setting
  • Loading branch information
taokayan authored Mar 19, 2024
2 parents e87222a + da7ca38 commit 101c3eb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions src/engine_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ class engine_plugin_impl : std::enable_shared_from_this<engine_plugin_impl> {
engine_plugin_impl(const std::string& data_dir, uint32_t num_of_threads, uint32_t max_readers, std::string address, std::optional<std::string> genesis_json) {

node_settings.data_directory = std::make_unique<silkworm::DataDirectory>(data_dir, false);
node_settings.etherbase = silkworm::to_evmc_address(silkworm::from_hex("").value()); // TODO determine etherbase name
node_settings.chaindata_env_config = {node_settings.data_directory->chaindata().path().string(), false, false};
node_settings.chaindata_env_config.max_readers = max_readers;
node_settings.chaindata_env_config.exclusive = false;
Expand Down Expand Up @@ -115,7 +114,7 @@ class engine_plugin_impl : std::enable_shared_from_this<engine_plugin_impl> {
auto sentry = std::make_shared<nopsentry>();
eth.reset(new silkworm::EthereumBackEnd(node_settings, &db_env, sentry));
eth->set_node_name("EOS EVM Node");
SILK_INFO << "Created Ethereum Backend with network id <" << node_settings.network_id << ">, etherbase <" << node_settings.etherbase->bytes << ">";
SILK_INFO << "Created Ethereum Backend with network id <" << node_settings.network_id << ">";

server.reset(new silkworm::rpc::BackEndKvServer(server_settings, *eth.get()));
}
Expand Down
1 change: 0 additions & 1 deletion src/rpc_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ void rpc_plugin::plugin_initialize( const appbase::variables_map& options ) try
silkworm::NodeSettings node_settings;
node_settings.data_directory = std::make_unique<silkworm::DataDirectory>(data_dir, false);
node_settings.network_id = config.chain_id;
node_settings.etherbase = silkworm::to_evmc_address(silkworm::from_hex("").value()); // TODO determine etherbase name
node_settings.chaindata_env_config = {node_settings.data_directory->chaindata().path().string(), false, true, false, false, true};

// bool create{false}; // Whether db file must be created
Expand Down

0 comments on commit 101c3eb

Please sign in to comment.