coins.h
1 // Copyright (c) 2023 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 12 /** 13 * Create a Coin with DynamicMemoryUsage of 80 bytes and add it to the given view. 14 * @param[in,out] coins_view The coins view cache to add the new coin to. 15 * @returns the COutPoint of the created coin. 16 */ 17 COutPoint AddTestCoin(CCoinsViewCache& coins_view); 18 19 #endif // BITCOIN_TEST_UTIL_COINS_H