File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -248,7 +248,8 @@ FUZZ_TARGET(ephemeral_package_eval, .init = initialize_tx_pool)
248
248
249
249
CAmount amount_in{0 };
250
250
for (int i = 0 ; i < num_in; ++i) {
251
- // Pop random outpoint
251
+ // Pop random outpoint. We erase them to avoid double-spending
252
+ // while in this loop, but later add them back (unless last_tx).
252
253
auto pop = outpoints.begin ();
253
254
std::advance (pop, fuzzed_data_provider.ConsumeIntegralInRange <size_t >(0 , outpoints.size () - 1 ));
254
255
auto outpoint = *pop;
@@ -405,7 +406,8 @@ FUZZ_TARGET(tx_package_eval, .init = initialize_tx_pool)
405
406
406
407
CAmount amount_in{0 };
407
408
for (size_t i = 0 ; i < num_in; ++i) {
408
- // Pop random outpoint
409
+ // Pop random outpoint. We erase them to avoid double-spending
410
+ // while in this loop, but later add them back (unless last_tx).
409
411
auto pop = outpoints.begin ();
410
412
std::advance (pop, fuzzed_data_provider.ConsumeIntegralInRange <size_t >(0 , outpoints.size () - 1 ));
411
413
const auto outpoint = *pop;
You can’t perform that action at this time.
0 commit comments