Skip to content

Commit

Permalink
add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
lumtis committed Feb 29, 2024
1 parent 6da3633 commit abee09a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions x/crosschain/migrations/v5/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit abee09a

Please sign in to comment.