File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
- // Copyright (c) 2022 The Bitcoin Core developers
1
+ // Copyright (c) 2022-present The Bitcoin Core developers
2
2
// Distributed under the MIT software license, see the accompanying
3
3
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
4
@@ -37,11 +37,11 @@ FUZZ_TARGET(txorphan, .init = initialize_orphanage)
37
37
SetMockTime (ConsumeTime (fuzzed_data_provider));
38
38
39
39
TxOrphanage orphanage;
40
- std::set <COutPoint> outpoints;
40
+ std::vector <COutPoint> outpoints; // Duplicates are tolerated
41
41
42
42
// initial outpoints used to construct transactions later
43
43
for (uint8_t i = 0 ; i < 4 ; i++) {
44
- outpoints.emplace (Txid::FromUint256 (uint256{i}), 0 );
44
+ outpoints.emplace_back (Txid::FromUint256 (uint256{i}), 0 );
45
45
}
46
46
47
47
CTransactionRef ptx_potential_parent = nullptr ;
@@ -67,7 +67,7 @@ FUZZ_TARGET(txorphan, .init = initialize_orphanage)
67
67
auto new_tx = MakeTransactionRef (tx_mut);
68
68
// add newly constructed outpoints to the coin pool
69
69
for (uint32_t i = 0 ; i < num_out; i++) {
70
- outpoints.emplace (new_tx->GetHash (), i);
70
+ outpoints.emplace_back (new_tx->GetHash (), i);
71
71
}
72
72
return new_tx;
73
73
}();
You can’t perform that action at this time.
0 commit comments