Implements storage primitives required by the chain
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.