Fix validator rpc addr to match leader

This commit is contained in:
Tyera Eulberg 2018-08-20 22:57:53 -06:00 committed by Michael Vines
parent 0b48aea937
commit 86c1d97c13
1 changed files with 1 additions and 2 deletions

View File

@ -297,8 +297,7 @@ impl Fullnode {
);
thread_hdls.extend(rpu.thread_hdls());
let mut rpc_addr = node.data.contact_info.ncp;
rpc_addr.set_port(RPC_PORT);
let rpc_addr = SocketAddr::new(IpAddr::V4(Ipv4Addr::new(0, 0, 0, 0)), RPC_PORT);
let rpc_service = JsonRpcService::new(bank.clone(), rpc_addr, exit.clone());
thread_hdls.extend(rpc_service.thread_hdls());