Skip to content

Commit

Permalink
Apply feedback from @aeyakovenko
Browse files Browse the repository at this point in the history
  • Loading branch information
garious committed Jun 15, 2018
1 parent 22885c3 commit 327ee1d
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
6 changes: 3 additions & 3 deletions src/replicate_stage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ pub struct ReplicateStage {
}

impl ReplicateStage {
/// Process verified blobs, already in order
/// Process entry blobs, already in order
fn replicate_requests(
bank: &Arc<Bank>,
verified_receiver: &streamer::BlobReceiver,
blob_receiver: &streamer::BlobReceiver,
blob_recycler: &packet::BlobRecycler,
) -> Result<()> {
let timer = Duration::new(1, 0);
let blobs = verified_receiver.recv_timeout(timer)?;
let blobs = blob_receiver.recv_timeout(timer)?;
let entries = ledger::reconstruct_entries_from_blobs(&blobs);
let res = bank.process_entries(entries);
if res.is_err() {
Expand Down
42 changes: 21 additions & 21 deletions src/tvu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,27 @@
//! 3-stage transaction validation pipeline in software.
//!
//! ```text
//! .----------------------------------------.
//! | TVU |
//! | |
//! | |
//! | |
//! | |
//! | .-------. .--------. .-----------. |
//! .--------. | | Blob | | Window | | Replicate | | .------------.
//! | Leader |--->| Fetch |->| Stage |->| Stage |---->| Validators |
//! `--------` | | Stage | | | | | | `------------`
//! | `-------` `----+---` `----+------` |
//! | | | |
//! | | | |
//! | | | |
//! | | | |
//! `------------------|-----------|---------`
//! | |
//! v v
//! .--------. .------.
//! | Window | | Bank |
//! `--------` `------`
//! .------------------------------------------.
//! | TVU |
//! | |
//! | | .------------.
//! | .------------------------>| Validators |
//! | .-------. | | `------------`
//! .--------. | | | .----+---. .-----------. |
//! | Leader |--------->| Blob | | Window | | Replicate | |
//! `--------` | | Fetch |-->| Stage |-->| Stage | |
//! .------------. | | Stage | | | | | |
//! | Validators |----->| | `--------` `----+------` |
//! `------------` | `-------` | |
//! | | |
//! | | |
//! | | |
//! `--------------------------------|---------`
//! |
//! v
//! .------.
//! | Bank |
//! `------`
//! ```
//
// TODO: @aeyakovenko, these comments no longer refect the code in this module:
Expand Down

0 comments on commit 327ee1d

Please sign in to comment.