mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-19 13:27:35 +02:00
Merge a70911492f into merged_master (Bitcoin PR bitcoin/bitcoin#26749)
includes a FIXME for rpc_psbt.py that must have happened in the merge of bitcoin/bitcoin#27200
This commit is contained in:
commit
e268f3a7eb
8 changed files with 54 additions and 64 deletions
|
|
@ -13,10 +13,7 @@
|
|||
|
||||
namespace {
|
||||
struct DumbCheck {
|
||||
const bool result = false;
|
||||
|
||||
// ELEMENTS: fix unused member function warnings
|
||||
// DumbCheck() = default;
|
||||
bool result = false;
|
||||
|
||||
explicit DumbCheck(const bool _result) : result(_result)
|
||||
{
|
||||
|
|
@ -26,10 +23,6 @@ struct DumbCheck {
|
|||
{
|
||||
return result;
|
||||
}
|
||||
|
||||
//void swap(DumbCheck& x) noexcept
|
||||
//{
|
||||
//}
|
||||
};
|
||||
} // namespace
|
||||
|
||||
|
|
@ -49,7 +42,7 @@ FUZZ_TARGET(checkqueue)
|
|||
checks_2.emplace_back(new DumbCheck(result));
|
||||
}
|
||||
if (fuzzed_data_provider.ConsumeBool()) {
|
||||
check_queue_1.Add(checks_1);
|
||||
check_queue_1.Add(std::move(checks_1));
|
||||
} else {
|
||||
for (auto check : checks_1) delete check;
|
||||
}
|
||||
|
|
@ -59,7 +52,7 @@ FUZZ_TARGET(checkqueue)
|
|||
|
||||
CCheckQueueControl<DumbCheck> check_queue_control{&check_queue_2};
|
||||
if (fuzzed_data_provider.ConsumeBool()) {
|
||||
check_queue_control.Add(checks_2);
|
||||
check_queue_control.Add(std::move(checks_2));
|
||||
} else {
|
||||
for (auto check : checks_2) delete check;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue