Skip to content

Commit 660bae9

Browse files
committed
feat/parsec: add related_info to Observation::Genesis
- 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)
1 parent 8c0d9d0 commit 660bae9

File tree

12 files changed

+280
-249
lines changed

12 files changed

+280
-249
lines changed

examples/basic.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,12 @@ impl Peer {
107107
fn from_genesis(our_id: PeerId, genesis_group: &BTreeSet<PeerId>) -> Self {
108108
Self {
109109
id: our_id.clone(),
110-
parsec: Parsec::from_genesis(our_id, genesis_group, ConsensusMode::Supermajority),
110+
parsec: Parsec::from_genesis(
111+
our_id,
112+
genesis_group,
113+
vec![],
114+
ConsensusMode::Supermajority,
115+
),
111116
observations: vec![],
112117
blocks: vec![],
113118
}

input_graphs/benches/minimal.dot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,7 @@ digraph GossipGraph {
914914

915915
/// ===== meta-elections =====
916916
/// consensus_history:
917-
/// a137c1b54c5895b13a1e204869f650636920286bd5b903e0576a9a15a2f58c2c
917+
/// d98f8abc4ba966aadc391bb857a6879a122602074766f19fadf22ce59dd0410e
918918
/// c93ff2cda7e9dd6a49b12c4fccdbaa0fe1b25b1e92421f288b06bfe53122be0f
919919

920920
/// interesting_events: {

0 commit comments

Comments
 (0)