Add json-rpc sendTransaction endpoint

This commit is contained in:
Tyera Eulberg
2018-08-22 11:53:24 -06:00
committed by Tyera Eulberg
parent 96787ff4ac
commit a9c3a28a3b
2 changed files with 38 additions and 25 deletions

View File

@ -203,7 +203,12 @@ impl Fullnode {
thread_hdls.extend(rpu.thread_hdls());
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.clone(),
node.data.contact_info.tpu,
rpc_addr,
exit.clone(),
);
thread_hdls.extend(rpc_service.thread_hdls());
let blob_recycler = BlobRecycler::default();
@ -298,7 +303,12 @@ impl Fullnode {
thread_hdls.extend(rpu.thread_hdls());
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.clone(),
node.data.contact_info.tpu,
rpc_addr,
exit.clone(),
);
thread_hdls.extend(rpc_service.thread_hdls());
let blob_recycler = BlobRecycler::default();