23 coins_view.
AddCoin(outpoint, std::move(new_coin),
false);
CCoinsView that adds a memory cache for transactions to another CCoinsView.
void AddCoin(const COutPoint &outpoint, Coin &&coin, bool possible_overwrite)
Add a coin.
An outpoint - a combination of a transaction hash and an index n into its vout.
CTxOut out
unspent transaction output
uint32_t nHeight
at which height this containing transaction was included in the active block chain
uint256 rand256() noexcept
generate a random uint256.
void assign(size_type n, const T &val)
static transaction_identifier FromUint256(const uint256 &id)
COutPoint AddTestCoin(FastRandomContext &rng, CCoinsViewCache &coins_view)
Create a Coin with DynamicMemoryUsage of 80 bytes and add it to the given view.
CAmount RandMoney(Rng &&rng)