Skip to content

Commit

Permalink
rename endorseExpired
Browse files Browse the repository at this point in the history
  • Loading branch information
envestcc committed Jan 5, 2024
1 parent a29fbab commit b51dac4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions action/protocol/staking/bucket_validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,13 @@ func validateBucket(ctx context.Context, csm CandidateStateManager, esm *Endorse
}
}
status := endorse.Status(blkCtx.BlockHeight)
if *validation.endorsed && status == NotEndorsed {
if *validation.endorsed && status == EndorseExpired {
return &handleError{
err: errors.New("bucket is not endorsed"),
failureStatus: iotextypes.ReceiptStatus_ErrInvalidBucketType,

Check warning on line 134 in action/protocol/staking/bucket_validation.go

View check run for this annotation

Codecov / codecov/patch

action/protocol/staking/bucket_validation.go#L130-L134

Added lines #L130 - L134 were not covered by tests
}
}
if !*validation.endorsed && status != NotEndorsed {
if !*validation.endorsed && status != EndorseExpired {
return &handleError{
err: errors.New("bucket is already endorsed"),
failureStatus: iotextypes.ReceiptStatus_ErrInvalidBucketType,

Check warning on line 140 in action/protocol/staking/bucket_validation.go

View check run for this annotation

Codecov / codecov/patch

action/protocol/staking/bucket_validation.go#L137-L140

Added lines #L137 - L140 were not covered by tests
Expand Down

0 comments on commit b51dac4

Please sign in to comment.