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(0x7f95130c9428), requires_capability(0x7f950163c718), requires_capability(0x7f95241d9708), requires_capability(0x7f951f330a08), requires_capability(0x7f950b9c29c8), requires_capability(0x7f95175c5118)]]
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.