Skip to content
Permalink
Browse files

remove genesis for now

  • Loading branch information...
NicolasDP committed Mar 12, 2019
1 parent c5ea7d3 commit a2c3fa18ef64489586453f083f2cc6fcb0cfa04a
Showing with 2 additions and 5 deletions.
  1. +2 −5 chain-impl-mockchain/src/leadership/mod.rs
@@ -4,7 +4,7 @@ use chain_crypto::algorithms::vrf::vrf::{self, ProvenOutputSeed};
use chain_crypto::{Ed25519Extended, FakeMMM, PublicKey, SecretKey};

pub mod bft;
pub mod genesis;
// pub mod genesis;
pub mod none;

#[derive(Debug, Clone, PartialEq, Eq, Hash)]
@@ -43,7 +43,7 @@ pub enum PublicLeader {
pub struct Update {
pub(crate) previous_leader: PublicLeader,
pub(crate) next_leader: PublicLeader,
pub(crate) genesis: genesis::GenesisSelectionDiff,
// pub(crate) genesis: genesis::GenesisSelectionDiff,
}

pub enum Leader {
@@ -66,17 +66,14 @@ impl property::Update for Update {
Update {
previous_leader: PublicLeader::None,
next_leader: PublicLeader::None,
genesis: genesis::GenesisSelectionDiff::empty(),
}
}
fn union(&mut self, other: Self) -> &mut Self {
self.next_leader = other.next_leader;
self.genesis.union(other.genesis);
self
}
fn inverse(mut self) -> Self {
std::mem::swap(&mut self.previous_leader, &mut self.next_leader);
self.genesis = self.genesis.inverse();
self
}
}

0 comments on commit a2c3fa1

Please sign in to comment.
You can’t perform that action at this time.