Sfoglia il codice sorgente

consensus/state/epoch_changed(): update consensus.epoch on epoch change

aggstam 3 anni fa
parent
commit
60c33e4734
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      src/consensus/state.rs

+ 1 - 0
src/consensus/state.rs

@@ -344,6 +344,7 @@ impl ValidatorState {
         // TODO: slot parameter should be absolute slot, not relative.
         // At start of epoch, relative slot is 0.
         self.consensus.coins = coins::create_epoch_coins(eta, &owned, epoch, 0);
+        self.consensus.epoch = epoch;
         Ok(true)
     }