Skip to content

Commit de991aa

Browse files
authored
Merge pull request #53 from Firstset/52/improve-gov-proposal-alerts
2 parents 48fbdcb + 83b8e53 commit de991aa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

td2/provider-default.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ func (d *DefaultProvider) CheckIfValidatorVoted(ctx context.Context, proposalID
121121
// If we've tried all nodes and found no votes, return false
122122
// If there were errors, return the last one
123123
if lastErr != nil {
124-
return false, fmt.Errorf("failed to check validator vote across all nodes: %w", lastErr)
124+
return false, fmt.Errorf("did not find validator vote transaction across all nodes, last error in a response: %w", lastErr)
125125
}
126126

127127
return false, nil
@@ -158,7 +158,7 @@ func (d *DefaultProvider) QueryUnvotedOpenProposals(ctx context.Context) ([]gov.
158158
l(fmt.Sprintf("⚠️ Error checking if validator voted: %v", err))
159159
}
160160

161-
if err == nil && !hasVoted {
161+
if !hasVoted {
162162
unvotedProposals = append(unvotedProposals, proposal)
163163
}
164164
}

0 commit comments

Comments
 (0)