Skip to content

Commit

Permalink
Merge branch 'andrius/uptime-vote-err-tweak' into 'main'
Browse files Browse the repository at this point in the history
Improve uptime vote signing error handling

See merge request flarenetwork/flare-system-client!33
  • Loading branch information
mboben committed Jul 22, 2024
2 parents 9e26cdf + dcfcd47 commit 34ef4ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/registration/system_manager_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ var (
"new signing policy already signed",
}
nonFatalSignUptimeVoteErrors = []string{
"submit uptime vote already ended",
"submit uptime vote already ended", "voter already signed",
}
int64Ty, _ = abi.NewType("int64", "int64", nil)
bytes32Ty, _ = abi.NewType("bytes32", "bytes32", nil)
Expand Down Expand Up @@ -258,7 +258,7 @@ func (s *systemsManagerContractClientImpl) sendSignUptimeVote(rewardEpochId *big
tx, err := s.flareSystemsManager.SignUptimeVote(s.senderTxOpts, rewardEpochId, [32]byte(zeroHash), signature)
if err != nil {
if shared.ExistsAsSubstring(nonFatalSignUptimeVoteErrors, err.Error()) {
logger.Debug("Non fatal error sending sign uptime vote: %v", err)
logger.Info("Non fatal error sending sign uptime vote: %v", err)
return nil
}
return err
Expand Down

0 comments on commit 34ef4ac

Please sign in to comment.