mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-22 06:52:36 +01:00
Bugfix: set x-only flag when inferring pk() inside tr()
This commit is contained in:
parent
8fe6f5a6fb
commit
18ad54c3b2
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
if (ctx == ParseScriptContext::P2TR && script.size() == 34 && script[0] == 32 && script[33] == OP_CHECKSIG) {
|
||||||
XOnlyPubKey key{Span{script}.subspan(1, 32)};
|
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;
|
std::vector<std::vector<unsigned char>> data;
|
||||||
|
|
Loading…
Add table
Reference in a new issue