diff options
author | Andrew Chow <achow101-github@achow101.com> | 2022-08-12 16:30:09 -0400 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2022-08-19 14:37:36 -0400 |
commit | 116a620ce7e6724906d63de80a8a757004f22477 (patch) | |
tree | 18ded00107df8a53ac24803ddea9cd9436b110cf /src/script/sign.cpp | |
parent | ff638323d1cde68b537bb20cf096cba4e88ac4eb (diff) | |
download | bitcoin-116a620ce7e6724906d63de80a8a757004f22477.tar.xz |
Make DUMMY_CHECKER availble outside of script/sign.cpp
Diffstat (limited to 'src/script/sign.cpp')
-rw-r--r-- | src/script/sign.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/script/sign.cpp b/src/script/sign.cpp index 4014ebadbc..5da0d076d8 100644 --- a/src/script/sign.cpp +++ b/src/script/sign.cpp @@ -596,8 +596,11 @@ public: bool CheckECDSASignature(const std::vector<unsigned char>& scriptSig, const std::vector<unsigned char>& vchPubKey, const CScript& scriptCode, SigVersion sigversion) const override { return true; } bool CheckSchnorrSignature(Span<const unsigned char> sig, Span<const unsigned char> pubkey, SigVersion sigversion, ScriptExecutionData& execdata, ScriptError* serror) const override { return true; } }; -const DummySignatureChecker DUMMY_CHECKER; +} + +const BaseSignatureChecker& DUMMY_CHECKER = DummySignatureChecker(); +namespace { class DummySignatureCreator final : public BaseSignatureCreator { private: char m_r_len = 32; |