From abee09ae9784d98fd286a2204608296613601ea1 Mon Sep 17 00:00:00 2001 From: lumtis Date: Thu, 29 Feb 2024 16:21:37 +0100 Subject: [PATCH] add logs --- x/crosschain/migrations/v5/migrate.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/x/crosschain/migrations/v5/migrate.go b/x/crosschain/migrations/v5/migrate.go index 37d536ef30..4465d46902 100644 --- a/x/crosschain/migrations/v5/migrate.go +++ b/x/crosschain/migrations/v5/migrate.go @@ -41,15 +41,21 @@ func ResetTestnetNonce( ) { tss, found := observerKeeper.GetTSS(ctx) if !found { + ctx.Logger().Info("ResetTestnetNonce: TSS not found") return } for chain, nonce := range CurrentTestnetChains() { cn, found := observerKeeper.GetChainNonces(ctx, chain.ChainName.String()) if !found { + ctx.Logger().Info("ResetTestnetNonce: Chain nonce not found", "chain", chain.ChainName.String()) continue } + + ctx.Logger().Info("ResetTestnetNonce: Resetting chain nonce", "chain", chain.ChainName.String()) + cn.Nonce = nonce.nonceHigh observerKeeper.SetChainNonces(ctx, cn) + pn, found := observerKeeper.GetPendingNonces(ctx, tss.TssPubkey, chain.ChainId) if !found { continue