Skip to content

Bonsai Archive sync halts on valid block due transaction nonce below sender error #9613

@jframe

Description

@jframe

Summary

When running Besu with Bonsai Archive mode (X_BONSAI_ARCHIVE), valid blocks are incorrectly rejected during chain reorganizations with the error "transaction nonce X below sender account nonce Y". This occurs because the WORLD_BLOCK_NUMBER_KEY in committed storage is not updated before flat DB writes during a reorg, causing account state to be written with incorrect block suffixes.

Block validation fails with errors like:

Block processing error: transaction invalid transaction nonce 45775 below sender account nonce 45776.
Block 0x264fd1c941df58170e474a0e8cbfa3f529ec73e439f8ddb34875bbb7929ea61b
Transaction 0xad9301ec868d244eb2b5b05dc66fee650979e5d7c3449e22016dd7994e96a5d1

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions