Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Block bodies are stored in the specified file and written in arbitrary order. A header containing the size of the body preceded the actual content of the body as shown on the following figure.

3.

...

4 Global software control

Gets, finds and puts require acquiring the lock and hence mutually exclusive.

3.

...

5 Boundary conditions

  • On node startup LMDB is initialized using the provided configuration and the block body file is opened
  • On node shutdown shutdowns LMDB and closes the block body file
  • On node error LMDB will not have to do any additional actions as it is system crash resistant. The block body storage can have some partially-written data in the end of the file, but index will not point to this corrupted part of the file as index is updated after the successful write to the block body file.

...