Skip to content

Commit

Permalink
debug: send valset confirm
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrajovic committed Oct 8, 2024
1 parent 3c04f17 commit 65d38ff
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion orchestrator/cosmos/peggy/broadcast.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,14 @@ func (c broadcastClient) SendValsetConfirm(_ context.Context, ethFrom gethcommon
Signature: gethcommon.Bytes2Hex(signature),
}

if err = c.ChainClient.QueueBroadcastMsg(msg); err != nil {
resp, err := c.ChainClient.SyncBroadcastMsg(msg)
if err != nil {
metrics.ReportFuncError(c.svcTags)
return errors.Wrap(err, "broadcasting MsgValsetConfirm failed")
}

log.Debugln("SendValsetConfirm response", resp.String())

return nil
}

Expand Down
3 changes: 3 additions & 0 deletions orchestrator/signer.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package orchestrator

import (
"context"
"time"

gethcommon "github.com/ethereum/go-ethereum/common"
log "github.com/xlab/suplog"
Expand Down Expand Up @@ -76,6 +77,8 @@ func (l *signer) signValidatorSets(ctx context.Context) error {
}

l.Log().WithFields(log.Fields{"valset_nonce": vs.Nonce, "validators": len(vs.Members)}).Infoln("confirmed valset update on Injective")

time.Sleep(1200 * time.Millisecond)
}

return nil
Expand Down

0 comments on commit 65d38ff

Please sign in to comment.