Use Txid in COutpoint

This commit is contained in:
dergoegge
2023-10-11 14:53:04 +01:00
parent d752349029
commit 9e58c5bcd9
48 changed files with 124 additions and 114 deletions

View File

@@ -16,8 +16,7 @@
COutPoint AddTestCoin(CCoinsViewCache& coins_view)
{
Coin new_coin;
const uint256 txid{InsecureRand256()};
COutPoint outpoint{txid, /*nIn=*/0};
COutPoint outpoint{Txid::FromUint256(InsecureRand256()), /*nIn=*/0};
new_coin.nHeight = 1;
new_coin.out.nValue = InsecureRandMoneyAmount();
new_coin.out.scriptPubKey.assign(uint32_t{56}, 1);