Apply feedback from @aeyakovenko
This commit is contained in:
committed by
Greg Fitzgerald
parent
22885c3e64
commit
327ee1dae8
@ -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() {
|
||||
|
42
src/tvu.rs
42
src/tvu.rs
@ -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:
|
||||
|
Reference in New Issue
Block a user