Background
Description:
Problem
When hedera.recordStream.writeWrappedRecordFileBlockHashesToDisk is enabled, WrappedRecordFileBlockHashesDiskWriter appends to wrapped-record-hashes.pb
indefinitely across restarts — the file grows without bound and is never reset.
We can't naively truncate it on every restart, though: WrappedRecordBlockHashMigration reads this same file during the jumpstart flow to compute continuing
block-root hashes from a historical checkpoint. If the file were cleared before that read, jumpstart would silently lose the data it needs
(resolveRecentHashesPath() would find no file, or a stale one).
Note that V0760BlockRecordSchema.migrate() already deletes this file when writing is disabled, but that runs during Hedera.initializeStatesApi(), which is
called before the jumpstart migration executes — so that call site can't be reused for this case without reordering startup.
Acceptance Criteria
Implement the above with unit tests
Dependencies
No response
Definition of Ready (DoR) Checklist
Definition of Done (DoD) Checklist
Background
Description:
Problem
When hedera.recordStream.writeWrappedRecordFileBlockHashesToDisk is enabled, WrappedRecordFileBlockHashesDiskWriter appends to wrapped-record-hashes.pb
indefinitely across restarts — the file grows without bound and is never reset.
We can't naively truncate it on every restart, though: WrappedRecordBlockHashMigration reads this same file during the jumpstart flow to compute continuing
block-root hashes from a historical checkpoint. If the file were cleared before that read, jumpstart would silently lose the data it needs
(resolveRecentHashesPath() would find no file, or a stale one).
Note that V0760BlockRecordSchema.migrate() already deletes this file when writing is disabled, but that runs during Hedera.initializeStatesApi(), which is
called before the jumpstart migration executes — so that call site can't be reused for this case without reordering startup.
Acceptance Criteria
Implement the above with unit tests
Dependencies
No response
Definition of Ready (DoR) Checklist
Definition of Done (DoD) Checklist