Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed to commit block 21910804 #4561

Closed
dustinxie opened this issue Feb 16, 2025 · 1 comment · Fixed by #4562 · May be fixed by #4566
Closed

failed to commit block 21910804 #4561

dustinxie opened this issue Feb 16, 2025 · 1 comment · Fixed by #4562 · May be fixed by #4566
Labels
bug Something isn't working

Comments

@dustinxie
Copy link
Member

What version of iotex-core image (or code branch) are you using?

latest

What operating system and processor architecture are you using?

macOS/Linux

What did you do? If possible, provide a recipe for reproducing the error.

as title, full-node failed to commit block 21910804

Root-cause

The culprit tx is https://iotexscan.io/tx/9d5bd12aa6b8bf7bc803b253f2dcc26abcd6980fa953491b1270dfdfbf64aacb, which is a CandidateUpdate but with empty name. It triggers the following error

func (cu *CandidateUpdate) SanityCheck() error {
    if !IsValidCandidateName(cu.Name()) {
        return ErrInvalidCanName
    }
    return nil
}

the check code is added by #3705, and was included in v1.10.0 release on Mar 23, 2023, which happened after the culprit tx

@dustinxie dustinxie added the bug Something isn't working label Feb 16, 2025
@envestcc
Copy link
Member

#4564 is also required to prevent this from happening again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants