diff --git a/action/protocol/staking/bucket_validation.go b/action/protocol/staking/bucket_validation.go index 53bfca420d..ed9d68c2f9 100644 --- a/action/protocol/staking/bucket_validation.go +++ b/action/protocol/staking/bucket_validation.go @@ -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, } } - if !*validation.endorsed && status != NotEndorsed { + if !*validation.endorsed && status != EndorseExpired { return &handleError{ err: errors.New("bucket is already endorsed"), failureStatus: iotextypes.ReceiptStatus_ErrInvalidBucketType,