Commit c42447df authored by Adam Tucker's avatar Adam Tucker Committed by ValarDragon
Browse files

epoch num added to log

parent e409ad5b
Showing with 2 additions and 2 deletions
+2 -2
......@@ -29,11 +29,11 @@ func BeginBlocker(ctx sdk.Context, k keeper.Keeper) {
epochInfo.EpochCountingStarted = true
epochInfo.CurrentEpoch = 1
epochInfo.CurrentEpochStartTime = epochInfo.StartTime
logger.Info(fmt.Sprintf("Starting new epoch with identifier %s", epochInfo.Identifier))
logger.Info(fmt.Sprintf("Starting new epoch with identifier %s epoch number %d", epochInfo.Identifier, epochInfo.CurrentEpoch))
} else {
epochInfo.CurrentEpoch += 1
epochInfo.CurrentEpochStartTime = epochInfo.CurrentEpochStartTime.Add(epochInfo.Duration)
logger.Info(fmt.Sprintf("Starting epoch with identifier %s", epochInfo.Identifier))
logger.Info(fmt.Sprintf("Starting epoch with identifier %s epoch number %d", epochInfo.Identifier, epochInfo.CurrentEpoch))
ctx.EventManager().EmitEvent(
sdk.NewEvent(
types.EventTypeEpochEnd,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment