Procházet zdrojové kódy

consensus/state.rs: fixed participants insertion

aggstam před 4 roky
rodič
revize
89606ee02a
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/consensus/state.rs

+ 1 - 1
src/consensus/state.rs

@@ -607,7 +607,7 @@ impl ValidatorState {
         if self.consensus.participants.is_empty() {
             // If no nodes are active, node becomes a single node network.
             let participant = Participant::new(self.id, self.current_epoch());
-            self.consensus.pending_participants.push(participant);
+            self.consensus.participants.insert(participant.id, participant.clone());
         }
     }