node::BlockManager::WriteBlockUndo

Write a block's undo data to disk and record it in the block index.

Synopsis

Declared in <node/blockstorage.h>

[[requires_capability(0x7fd7532b0868), requires_capability(0x7fd74e9c77b8), requires_capability(0x7fd75a26b508), requires_capability(0x7fd74f16e988), requires_capability(0x7fd74a00e028), requires_capability(0x7fd753265938)]]
bool
WriteBlockUndo(
    CBlockUndo const& blockundo,
    BlockValidationState& state,
    CBlockIndex& block);

Return Value

True on success, false if writing failed.

Parameters

NameDescription
blockundoThe undo data to store.
stateValidation state updated on failure.
blockThe block index entry the undo data belongs to.