Bitcoin ABC 0.30.7
P2P Digital Currency
Classes | Functions
undo.h File Reference
#include <coins.h>
#include <compressor.h>
#include <consensus/consensus.h>
#include <disconnectresult.h>
#include <serialize.h>
#include <version.h>
Include dependency graph for undo.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  TxInUndoFormatter
 Formatter for undo information for a CTxIn. More...
 
class  CTxUndo
 Restore the UTXO in a Coin at a given COutPoint. More...
 
class  CBlockUndo
 Undo information for a CBlock. More...
 

Functions

DisconnectResult UndoCoinSpend (Coin &&undo, CCoinsViewCache &view, const COutPoint &out)
 Restore the UTXO in a Coin at a given COutPoint. More...
 
DisconnectResult ApplyBlockUndo (CBlockUndo &&blockUndo, const CBlock &block, const CBlockIndex *pindex, CCoinsViewCache &coins)
 Undo a block from the block and the undoblock data. More...
 

Function Documentation

◆ ApplyBlockUndo()

DisconnectResult ApplyBlockUndo ( CBlockUndo &&  blockUndo,
const CBlock block,
const CBlockIndex pindex,
CCoinsViewCache coins 
)

Undo a block from the block and the undoblock data.

See DisconnectBlock for more details.

Definition at line 1913 of file validation.cpp.

Here is the call graph for this function:

◆ UndoCoinSpend()

DisconnectResult UndoCoinSpend ( Coin &&  undo,
CCoinsViewCache view,
const COutPoint out 
)

Restore the UTXO in a Coin at a given COutPoint.

Parameters
undoThe Coin to be restored.
viewThe coins view to which to apply the changes.
outThe out point that corresponds to the tx input.
Returns
A DisconnectResult

Definition at line 1859 of file validation.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: