Connect TPU's broadcast service with TVU's blob fetch stage (#2587)

* Connect TPU's broadcast service with TVU's blob fetch stage

- This is needed since ledger is being written only in TVU now

* fix clippy warnings

* fix failing test

* fix broken tests

* fixed failing tests
This commit is contained in:
Pankaj Garg
2019-01-31 13:43:22 -08:00
committed by GitHub
parent 2dd20c38b2
commit 32162ef0f1
9 changed files with 80 additions and 31 deletions

View File

@@ -167,8 +167,9 @@ impl Replicator {
let mut blob_sockets: Vec<Arc<UdpSocket>> =
node.sockets.tvu.into_iter().map(Arc::new).collect();
blob_sockets.push(repair_socket.clone());
let (fetch_stage, blob_fetch_receiver) =
BlobFetchStage::new_multi_socket(blob_sockets, exit.clone());
let (blob_fetch_sender, blob_fetch_receiver) = channel();
let fetch_stage =
BlobFetchStage::new_multi_socket(blob_sockets, &blob_fetch_sender, exit.clone());
// todo: pull blobs off the retransmit_receiver and recycle them?
let (retransmit_sender, retransmit_receiver) = channel();
@@ -189,6 +190,7 @@ impl Replicator {
leader_pubkey,
))),
done.clone(),
exit.clone(),
);
info!("window created, waiting for ledger download done");