Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reorganize init, add eth_json rpc bind #1967

Merged
merged 12 commits into from
May 11, 2023
2 changes: 1 addition & 1 deletion lib/ain-grpc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ pub fn add_grpc_server(_runtime: &Runtime, _addr: &str) -> Result<(), Box<dyn Er
}

pub fn init_runtime() {
log::info!("Starting gRPC and JSON RPC servers");
LogBuilder::from_env(Env::default().default_filter_or(Level::Info.as_str()))
.target(Target::Stdout)
.init();
log::info!("Starting gRPC and JSON RPC servers");
let _ = &*RUNTIME;
}

Expand Down
2 changes: 1 addition & 1 deletion src/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1556,7 +1556,7 @@ bool AppInitMain(InitInterfaces& interfaces)
init_runtime();
int grpc_port = gArgs.GetArg("-grpcport", BaseParams().GRPCPort());
int eth_rpc_port = gArgs.GetArg("-ethrpcport", BaseParams().ETHRPCPort());
start_servers("127.0.0.1:" + std::to_string(eth_rpc_port), "127.0.0.1:" + std::to_string(grpc_port));
start_servers("0.0.0.0:" + std::to_string(eth_rpc_port), "0.0.0.0:" + std::to_string(grpc_port));


// ********************************************************* Step 5: verify wallet database integrity
Expand Down