aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2021-06-28 15:53:41 -0400
committerAndrew Chow <achow101-github@achow101.com>2021-11-15 23:50:32 -0500
commit54b3699862de687f782c7c52500d6a2372478355 (patch)
tree1c71773c861ebc065e1fa97e0f2b3b68994866a3 /src
parentffdab41f94521dc87e68a160546af55355340af5 (diff)
downloadbitcoin-54b3699862de687f782c7c52500d6a2372478355.tar.xz
Store pubkeys in TRDescriptor::MakeScripts
When expanding the scripts for a TRDescriptor, also store the pubkeys in the FlatSigningProvider.
Diffstat (limited to 'src')
-rw-r--r--src/script/descriptor.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/script/descriptor.cpp b/src/script/descriptor.cpp
index 621a1b9fd6..c3b4d1ddaa 100644
--- a/src/script/descriptor.cpp
+++ b/src/script/descriptor.cpp
@@ -851,6 +851,7 @@ protected:
builder.Finalize(xpk);
WitnessV1Taproot output = builder.GetOutput();
out.tr_spenddata[output].Merge(builder.GetSpendData());
+ out.pubkeys.emplace(keys[0].GetID(), keys[0]);
return Vector(GetScriptForDestination(output));
}
bool ToStringSubScriptHelper(const SigningProvider* arg, std::string& ret, const StringType type, const DescriptorCache* cache = nullptr) const override