pub struct ChainStore { /* private fields */ }
Expand description

All chain-related database operations

Implementations

Create new chain store

The current chain head.

The current header head (may differ from chain head).

The current chain “tail” (earliest block in the store).

Header of the block at the head of the block chain (not the same thing as header_head).

Get full block.

Does this full block exist?

Get block_sums for the block hash.

Get previous header.

Get previous header without deserializing the proof nonces

Get block header.

Get block header without deserializing the full PoW Proof; currently used for difficulty iterator which is called many times but doesn’t need the proof

Get PMMR pos for the given output commitment.

Get PMMR pos and block height for the given output commitment.

Builds a new batch to be used with this store.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Given ptr, which was obtained from a prior call to Self::borrow(), return a value with the same nominal lifetime which is guaranteed to survive mutations to Self. Read more

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.