diff options
author | Pieter Wuille <pieter@wuille.net> | 2022-02-14 18:11:39 -0500 |
---|---|---|
committer | Pieter Wuille <pieter@wuille.net> | 2022-02-14 18:14:10 -0500 |
commit | 18ad54c3b21804ad540631dd4527cbad6d6ccc75 (patch) | |
tree | fb3f1d06496e319678315897f65d331487d1171f /src/script | |
parent | 8fe6f5a6fbcd8083d916cb630f35f8f5980d6825 (diff) | |
download | bitcoin-18ad54c3b21804ad540631dd4527cbad6d6ccc75.tar.xz |
Bugfix: set x-only flag when inferring pk() inside tr()
Diffstat (limited to 'src/script')
-rw-r--r-- | src/script/descriptor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/descriptor.cpp b/src/script/descriptor.cpp index 84040bf847..9f12714e02 100644 --- a/src/script/descriptor.cpp +++ b/src/script/descriptor.cpp @@ -1253,7 +1253,7 @@ std::unique_ptr<DescriptorImpl> InferScript(const CScript& script, ParseScriptCo { if (ctx == ParseScriptContext::P2TR && script.size() == 34 && script[0] == 32 && script[33] == OP_CHECKSIG) { XOnlyPubKey key{Span{script}.subspan(1, 32)}; - return std::make_unique<PKDescriptor>(InferXOnlyPubkey(key, ctx, provider)); + return std::make_unique<PKDescriptor>(InferXOnlyPubkey(key, ctx, provider), true); } std::vector<std::vector<unsigned char>> data; |