Write a block's undo data to disk and record it in the block index.
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);
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. |