Skip to content

Commit

Permalink
swapped False and True coins
Browse files Browse the repository at this point in the history
  • Loading branch information
vkomenda committed Jun 22, 2018
1 parent 7a4fc37 commit 7be2510
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/agreement/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ impl<NodeUid: Clone + Debug + Ord> Agreement<NodeUid> {
netinfo,
Nonce::new(invocation_id.as_ref(), session_id, proposer_i, 0),
),
coin_schedule: CoinSchedule::False,
coin_schedule: CoinSchedule::True,
})
} else {
Err(ErrorKind::UnknownProposer.into())
Expand Down Expand Up @@ -424,8 +424,8 @@ impl<NodeUid: Clone + Debug + Ord> Agreement<NodeUid> {
/// Computes the coin schedule for the current `Agreement` epoch.
fn coin_schedule(&self) -> CoinSchedule {
match self.epoch % 3 {
0 => CoinSchedule::False,
1 => CoinSchedule::True,
0 => CoinSchedule::True,
1 => CoinSchedule::False,
_ => CoinSchedule::Random,
}
}
Expand Down

0 comments on commit 7be2510

Please sign in to comment.