Add first pass at fixing filter

This commit is contained in:
Paul Hauner
2020-01-15 14:40:09 +11:00
parent 486c74f6e9
commit 6f51db34e9
4 changed files with 324 additions and 132 deletions

View File

@@ -30,12 +30,13 @@ pub enum Error {
indices: usize,
},
RevertedFinalizedEpoch,
InvalidFindHeadStartRoot {
InvalidBestNode {
justified_epoch: Epoch,
finalized_epoch: Epoch,
node_justified_epoch: Epoch,
node_finalized_epoch: Epoch,
},
BestDescendantWithoutBestChild,
}
#[derive(Default, PartialEq, Clone, Encode, Decode)]
@@ -102,7 +103,6 @@ impl ProtoArrayForkChoice {
ffg_update_required: false,
justified_epoch,
finalized_epoch,
finalized_root,
nodes: Vec::with_capacity(1),
indices: HashMap::with_capacity(1),
};