Skip to content

Commit

Permalink
fix: publishCompletedUBD in endBlock
Browse files Browse the repository at this point in the history
  • Loading branch information
j75689 committed Feb 29, 2024
1 parent f585cfe commit 8d663ca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion x/stake/endblock.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,12 @@ func EndBlocker(ctx sdk.Context, k keeper.Keeper) (validatorUpdates []abci.Valid
if len(storePrefixes) > 0 && sdk.IsUpgrade(sdk.FirstSunsetFork) {
for i := range storePrefixes {
sideChainCtx := ctx.WithSideChainKeyPrefix(storePrefixes[i])
_, unBoundedEvents := handleMatureUnbondingDelegations(k, sideChainCtx)
ubd, unBoundedEvents := handleMatureUnbondingDelegations(k, sideChainCtx)

events = append(events, unBoundedEvents...)
publishCompletedUBD(k, ubd, sideChainIds[i], ctx.BlockHeight())
}

}

if sdk.IsUpgrade(sdk.BEP153) {
Expand Down

0 comments on commit 8d663ca

Please sign in to comment.