mirror of https://github.com/poanetwork/hbbft.git
fixed formatting
This commit is contained in:
parent
767be50088
commit
6db60a1535
|
@ -439,7 +439,9 @@ fn main() {
|
|||
.build_with_transactions(txs.clone(), rng)
|
||||
.expect("instantiate QueueingHoneyBadger");
|
||||
let (sq, mut step) = SenderQueue::builder(qhb, peer_ids.into_iter()).build(our_id);
|
||||
assert!(step.extend_with(qhb_step, |fault| fault, Message::from).is_empty());
|
||||
assert!(step
|
||||
.extend_with(qhb_step, |fault| fault, Message::from)
|
||||
.is_empty());
|
||||
(sq, step)
|
||||
};
|
||||
|
||||
|
|
|
@ -11,8 +11,8 @@ use serde::{de::DeserializeOwned, Serialize};
|
|||
|
||||
use super::votes::{SignedVote, VoteCounter};
|
||||
use super::{
|
||||
Batch, Change, ChangeState, DynamicHoneyBadgerBuilder, EncryptionSchedule, Error, Input,
|
||||
InternalContrib, JoinPlan, KeyGenMessage, KeyGenState, Message, Params, FaultKind, Result,
|
||||
Batch, Change, ChangeState, DynamicHoneyBadgerBuilder, EncryptionSchedule, Error, FaultKind,
|
||||
Input, InternalContrib, JoinPlan, KeyGenMessage, KeyGenState, Message, Params, Result,
|
||||
SignedKeyGenMsg, Step,
|
||||
};
|
||||
use crate::fault_log::{Fault, FaultLog};
|
||||
|
|
|
@ -373,7 +373,8 @@ where
|
|||
MessageContent::DecryptionShare {
|
||||
proposer_id: proposer_id.clone(),
|
||||
share,
|
||||
}.with_epoch(self.epoch)
|
||||
}
|
||||
.with_epoch(self.epoch)
|
||||
},
|
||||
);
|
||||
if let Some(output) = opt_output.into_iter().next() {
|
||||
|
|
|
@ -145,7 +145,8 @@ impl<N: NodeIdT + Rand, S: SessionIdT> ProposalState<N, S> {
|
|||
bc_step,
|
||||
|fail| Fault::new(fail.node_id, FaultKind::BroadcastFault(fail.kind)),
|
||||
MessageContent::Broadcast,
|
||||
).pop();
|
||||
)
|
||||
.pop();
|
||||
Ok((opt_value, step))
|
||||
}
|
||||
|
||||
|
@ -158,7 +159,8 @@ impl<N: NodeIdT + Rand, S: SessionIdT> ProposalState<N, S> {
|
|||
ba_step,
|
||||
|fault| Fault::new(fault.node_id, FaultKind::BaFault(fault.kind)),
|
||||
MessageContent::Agreement,
|
||||
).pop();
|
||||
)
|
||||
.pop();
|
||||
Ok((opt_decision, step))
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue