Skip to content

Research: moving block body persist off the apply critical path #20

Description

@metaphorics

Question

Block body persist costs 4.18s inside apply; Core pays zero during ConnectBlock because bodies are written to blk files at receipt time, off the validation path. Resolve: (a) confirm Core's actual write path and ordering guarantees (when is a block body durable relative to UpdateTip); (b) what durability invariant bitcoin-rs's apply currently relies on (crash-recovery interaction with the undo/disconnect marker); (c) safe patterns for moving body persist off the apply critical path (write-behind with ordering barrier, persist-at-receive) and what they require of the storage API. Cite primary sources including Core source; note versions.

Part of #16.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions