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.
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.