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

This commit is contained in:
aggstam
2022-11-15 18:32:46 +02:00
parent f46000ecbd
commit 60c33e4734

View File

@@ -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)
}