ChainstateManager::AddChainstate

Add new chainstate.

Synopsis

Declared in <validation.h>

[[requires_capability(0x7f9513c48198), requires_capability(0x7f9502de9938), requires_capability(0x7f950b21c108), requires_capability(0x7f9514bf60f8)]]
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.