31 template <
typename Stream>
void Ser(Stream &s,
const Coin &txout) {
41 template <
typename Stream>
void Unser(Stream &s,
Coin &txout) {
45 bool fCoinBase = nCode & 1;
50 unsigned int nVersionDummy = 0;
The block chain is a tree shaped structure starting with the genesis block at the root,...
Undo information for a CBlock.
std::vector< CTxUndo > vtxundo
SERIALIZE_METHODS(CBlockUndo, obj)
CCoinsView that adds a memory cache for transactions to another CCoinsView.
An outpoint - a combination of a transaction hash and an index n into its vout.
An output of a transaction.
Restore the UTXO in a Coin at a given COutPoint.
std::vector< Coin > vprevout
SERIALIZE_METHODS(CTxUndo, obj)
uint32_t GetHeight() const
void Unserialize(Stream &, char)=delete
static Wrapper< Formatter, T & > Using(T &&t)
Cause serialization/deserialization of an object to be done using a specified formatter class.
void Serialize(Stream &, char)=delete
DisconnectResult UndoCoinSpend(Coin &&undo, CCoinsViewCache &view, const COutPoint &out)
Restore the UTXO in a Coin at a given COutPoint.
DisconnectResult ApplyBlockUndo(CBlockUndo &&blockUndo, const CBlock &block, const CBlockIndex *pindex, CCoinsViewCache &coins)
Undo a block from the block and the undoblock data.