MCPcopy Create free account
hub / github.com/ElementsProject/elements / TxOutDBEntryIsSame

Function TxOutDBEntryIsSame

src/validation.cpp:1892–1897  ·  view source on GitHub ↗

We don't want to compare things that are not stored in utxo db, specifically the nonce commitment which has no consensus meaning for spending conditions

Source from the content-addressed store, hash-verified

1890// We don't want to compare things that are not stored in utxo db, specifically
1891// the nonce commitment which has no consensus meaning for spending conditions
1892static bool TxOutDBEntryIsSame(const CTxOut& block_txout, const CTxOut& txdb_txout)
1893{
1894 return txdb_txout.nValue == block_txout.nValue &&
1895 txdb_txout.nAsset == block_txout.nAsset &&
1896 txdb_txout.scriptPubKey == block_txout.scriptPubKey;
1897}
1898
1899/** Undo the effects of this block (with given index) on the UTXO set represented by coins.
1900 * When FAILED is returned, view is left in an indeterminate state. */

Callers 1

DisconnectBlockMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected