From 4ab58f069a28edcadb24a539ea33a48467c2db0a Mon Sep 17 00:00:00 2001 From: Greg Fitzgerald Date: Thu, 23 Aug 2018 10:47:02 -0600 Subject: [PATCH] Add back JsonRpcService changes --- src/fullnode.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/fullnode.rs b/src/fullnode.rs index b1660f3938ea0d..0fb6aa854eb606 100644 --- a/src/fullnode.rs +++ b/src/fullnode.rs @@ -186,8 +186,16 @@ impl Fullnode { ); thread_hdls.extend(rpu.thread_hdls()); + let mut drone_addr = node.data.contact_info.tpu; + 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(), rpc_addr, exit.clone()); + let rpc_service = JsonRpcService::new( + &bank, + node.data.contact_info.tpu, + drone_addr, + rpc_addr, + exit.clone(), + ); thread_hdls.extend(rpc_service.thread_hdls()); let blob_recycler = BlobRecycler::default();