Skip to content
Permalink
Browse files

missing not

  • Loading branch information...
vincenthz committed Mar 13, 2019
1 parent d48eadc commit 4a36f3e8862fe2f55100a77e46c058a3f9ae57c4
Showing with 1 addition and 1 deletion.
  1. +1 −1 chain-impl-mockchain/src/multiverse.rs
@@ -30,7 +30,7 @@ pub struct MultiVerse<ST>{

impl MultiVerse<ST> {
pub fn add(&mut self, prevhash: &HeaderHash, k: &HeaderHash, st: ST) {
if self.known_states.contains_key(k) {
if !self.known_states.contains_key(k) {
self.known_states.insert(k, st);
match self.tips.remove(prevhash) {
None => { self.tips.insert(k) },

0 comments on commit 4a36f3e

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