atomicity – Does Bitcoin-core write blockchain and chainstate knowledge atomically?


Specifically, when a brand new block arrives:

  1. Is the block written to disk in an atomic vogue, so a brand new block both exists, or it does not? (reader can by no means see {a partially} written state)

  2. Are the abstract databases (eg chainstate, block-index) written to, and flushed to disk in an atomic vogue together with the brand new block, such that the blockchain filestore won’t ever be out-of-sync with the levelDB filestore(s)?

  3. Extra typically, can the bitcoin datastores be mentioned to exhibit ACID properties?

  4. Are there any plans to vary the datastore conduct on this regard?

(I consider the solutions to 1-3 are: no, no, and no. However I would like to listen to extra particulars, and likewise rationale for the established order).

Leave a Reply

Your email address will not be published. Required fields are marked *

Back To Top