Skip to content

Commit

Permalink
feat/parsec: add related_info to Observation::Genesis
Browse files Browse the repository at this point in the history
- Some dot files had to be modified/regenerated because the hash of `Observation::Genesis` changed.
- A bogus clippy lint silenced by slightly reshuffling the code (clippy issue: rust-lang/rust-clippy#4133)
  • Loading branch information
madadam committed May 29, 2019
1 parent 8c0d9d0 commit 660bae9
Show file tree
Hide file tree
Showing 12 changed files with 280 additions and 249 deletions.
7 changes: 6 additions & 1 deletion examples/basic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,12 @@ impl Peer {
fn from_genesis(our_id: PeerId, genesis_group: &BTreeSet<PeerId>) -> Self {
Self {
id: our_id.clone(),
parsec: Parsec::from_genesis(our_id, genesis_group, ConsensusMode::Supermajority),
parsec: Parsec::from_genesis(
our_id,
genesis_group,
vec![],
ConsensusMode::Supermajority,
),
observations: vec![],
blocks: vec![],
}
Expand Down
2 changes: 1 addition & 1 deletion input_graphs/benches/minimal.dot
Original file line number Diff line number Diff line change
Expand Up @@ -914,7 +914,7 @@ digraph GossipGraph {

/// ===== meta-elections =====
/// consensus_history:
/// a137c1b54c5895b13a1e204869f650636920286bd5b903e0576a9a15a2f58c2c
/// d98f8abc4ba966aadc391bb857a6879a122602074766f19fadf22ce59dd0410e
/// c93ff2cda7e9dd6a49b12c4fccdbaa0fe1b25b1e92421f288b06bfe53122be0f

/// interesting_events: {
Expand Down
Loading

0 comments on commit 660bae9

Please sign in to comment.