ChainstateManager::AddChainstate

Add new chainstate.

Synopsis

Declared in <validation.h>

[[requires_capability(0x7ff37ba95928), requires_capability(0x7ff375ddc2b8), requires_capability(0x7ff37e1a5b88), requires_capability(0x7ff375a979f8)]]
Chainstate&
AddChainstate(std::unique_ptr<Chainstate> chainstate);

Return Value

A reference to the added chainstate.

Parameters

NameDescription
chainstateThe chainstate to take ownership of and add.