1 // Copyright (c) 2023-present The Bitcoin Core developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 5 #ifndef BITCOIN_TEST_UTIL_COINS_H
6 #define BITCOIN_TEST_UTIL_COINS_H
7 8 #include <primitives/transaction.h>
9 10 class CCoinsViewCache;
11 class FastRandomContext;
12 13 /**
14 * Create a Coin with DynamicMemoryUsage of 80 bytes and add it to the given view.
15 * @param[in,out] coins_view The coins view cache to add the new coin to.
16 * @returns the COutPoint of the created coin.
17 */
18 COutPoint AddTestCoin(FastRandomContext& rng, CCoinsViewCache& coins_view);
19 20 #endif // BITCOIN_TEST_UTIL_COINS_H
21