Module grin_chain::store

source ·
Expand description

Implements storage primitives required by the chain

Structs§

  • An atomic batch in which all changes can be committed all at once or discarded on error.
  • All chain-related database operations
  • An iterator on blocks, from latest to earliest, specialized to return information pertaining to block difficulty calculation (timestamp and previous difficulties). Mostly used by the consensus next difficulty calculation.

Constants§

Functions§

  • Init the NRD “recent history” kernel index backed by the underlying db. List index supports multiple entries per key, maintaining insertion order. Allows for fast lookup of the most recent entry per excess commitment.