Write a block's undo data to disk and record it in the block index.
Declared in <node/blockstorage.h>
[[requires_capability(0x7ff37af16c48), requires_capability(0x7ff376b83c28), requires_capability(0x7ff37ded1818), requires_capability(0x7ff36c616a38), requires_capability(0x7ff37c49a898), requires_capability(0x7ff39283d298)]]
bool
WriteBlockUndo(
CBlockUndo const& blockundo,
BlockValidationState& state,
CBlockIndex& block);
True on success, false if writing failed.
| Name | Description |
|---|---|
| blockundo | The undo data to store. |
| state | Validation state updated on failure. |
| block | The block index entry the undo data belongs to. |