Pass bank to rpc as reference

This commit is contained in:
Tyera Eulberg
2018-08-22 16:44:26 -06:00
committed by Tyera Eulberg
parent d910ed68a3
commit 2de8fe9c5f
3 changed files with 4 additions and 4 deletions

View File

@ -207,7 +207,7 @@ impl Fullnode {
drone_addr.set_port(DRONE_PORT);
let rpc_addr = SocketAddr::new(IpAddr::V4(Ipv4Addr::new(0, 0, 0, 0)), RPC_PORT);
let rpc_service = JsonRpcService::new(
bank.clone(),
&bank,
node.data.contact_info.tpu,
drone_addr,
rpc_addr,
@ -310,7 +310,7 @@ impl Fullnode {
drone_addr.set_port(DRONE_PORT);
let rpc_addr = SocketAddr::new(IpAddr::V4(Ipv4Addr::new(0, 0, 0, 0)), RPC_PORT);
let rpc_service = JsonRpcService::new(
bank.clone(),
&bank,
node.data.contact_info.tpu,
drone_addr,
rpc_addr,