mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
Merge 80f00cafde into merged_master (Bitcoin PR bitcoin/bitcoin#29071)
This commit is contained in:
commit
ce9cd2dfd7
21 changed files with 76 additions and 74 deletions
|
|
@ -2,10 +2,6 @@
|
|||
// Distributed under the MIT software license, see the accompanying
|
||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
#include <stdint.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include <test/util/random.h>
|
||||
#include <test/util/setup_common.h>
|
||||
#include <boost/test/unit_test.hpp>
|
||||
|
|
@ -22,6 +18,11 @@
|
|||
#include <script/script_error.h>
|
||||
#include <script/signingprovider.h>
|
||||
|
||||
#include <algorithm>
|
||||
#include <cstdint>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
namespace {
|
||||
|
||||
/** TestData groups various kinds of precomputed data necessary in this test. */
|
||||
|
|
@ -274,7 +275,7 @@ public:
|
|||
XOnlyPubKey pk{pubkey};
|
||||
auto it = g_testdata->schnorr_signatures.find(pk);
|
||||
if (it == g_testdata->schnorr_signatures.end()) return false;
|
||||
return sig == it->second;
|
||||
return std::ranges::equal(sig, it->second);
|
||||
}
|
||||
|
||||
bool CheckLockTime(const CScriptNum& locktime) const override {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue