Construct a chainstate.
Declared in <validation.h>
explicit
Chainstate(
CTxMemPool* mempool,
node::BlockManager& blockman,
ChainstateManager& chainman,
std::optional<uint256> from_snapshot_blockhash = std::nullopt);
| Name | Description |
|---|---|
| mempool | Optional mempool kept in sync with this chainstate (only the active chainstate has one). |
| blockman | BlockManager instance shared across all chainstates. |
| chainman | The chainstate manager that owns this chainstate. |
| from_snapshot_blockhash | Base block hash if this chainstate was created from a snapshot, otherwise std::nullopt. |