mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-09 14:48:08 -05:00
consensus/state/epoch_changed(): update consensus.epoch on epoch change
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user