From 8d663caeea0a04372275c88638fd74b2d150432e Mon Sep 17 00:00:00 2001 From: j75689 Date: Thu, 29 Feb 2024 17:23:07 +0800 Subject: [PATCH 1/2] fix: publishCompletedUBD in endBlock --- x/stake/endblock.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/x/stake/endblock.go b/x/stake/endblock.go index 4019d3dde..2b0c5e721 100644 --- a/x/stake/endblock.go +++ b/x/stake/endblock.go @@ -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) { From 447999d629f71a8ec47ed8792a661d01a4cd1302 Mon Sep 17 00:00:00 2001 From: j75689 Date: Thu, 29 Feb 2024 17:39:43 +0800 Subject: [PATCH 2/2] docs: update Changelog --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d298a0fce..61c494bd0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +##v0.26.8 +* [fix] [\#388] (https://github.com/bnb-chain/bnc-cosmos-sdk/pull/388) fix: publish completed UnbondingDelegation events to kafka in EndBlock + ##v0.26.7 * [sdk] [\#381] (https://github.com/bnb-chain/bnc-cosmos-sdk/pull/381) feat: implement BEP-333(BNB Chain Fusion) * [fix] [\#356] (https://github.com/bnb-chain/bnc-cosmos-sdk/pull/356) fix: fix nil validator when publishing message