Module grin_chain::store[][src]

Implements storage primitives required by the chain

Structs

Batch

An atomic batch in which all changes can be committed all at once or discarded on error.

ChainStore

All chain-related database operations

DifficultyIter

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

NRD_KERNEL_ENTRY_PREFIX

Prefix for NRD kernel pos index entries.

NRD_KERNEL_LIST_PREFIX

Prefix for NRD kernel pos index lists.

Functions

nrd_recent_kernel_index

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.