Skip to content

Commit

Permalink
test #2
Browse files Browse the repository at this point in the history
  • Loading branch information
Alberto Sonnino committed Jul 29, 2021
1 parent 2c4df7e commit ed5cbd1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion consensus/src/proposer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ impl Proposer {

async fn make_block(&mut self, round: Round, qc: QC, tc: Option<TC>) {
// Gather the payload.
/*
let digest_len = Digest::default().size();
let payload = self
.buffer
Expand All @@ -66,14 +67,15 @@ impl Proposer {
for x in &payload {
self.buffer.remove(x);
}
*/

// Generate a new block.
let block = Block::new(
qc,
tc,
self.name,
round,
payload,
self.buffer.drain().collect(),
self.signature_service.clone(),
)
.await;
Expand Down

0 comments on commit ed5cbd1

Please sign in to comment.