mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-02 01:04:43 +02:00
Use Txid in COutpoint
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user