Move entry->blob creation out of write stage (#1257)

- The write stage will output vector of entries
- Broadcast stage will create blobs out of the entries
- Helps reduce MIPS requirements for write stage
This commit is contained in:
Pankaj Garg
2018-09-18 13:49:10 -07:00
committed by GitHub
parent 7d14f44a7c
commit 5310b6e5a2
5 changed files with 30 additions and 32 deletions

View File

@ -287,7 +287,7 @@ impl Fullnode {
// TODO: To light up PoH, uncomment the following line:
//let tick_duration = Some(Duration::from_millis(1000));
let (tpu, blob_receiver) = Tpu::new(
let (tpu, entry_receiver) = Tpu::new(
keypair,
&bank,
&crdt,
@ -305,7 +305,7 @@ impl Fullnode {
shared_window,
entry_height,
blob_recycler.clone(),
blob_receiver,
entry_receiver,
);
let leader_state = LeaderServices::new(tpu, broadcast_stage);
node_role = NodeRole::Leader(leader_state);