From 54b3699862de687f782c7c52500d6a2372478355 Mon Sep 17 00:00:00 2001 From: Andrew Chow Date: Mon, 28 Jun 2021 15:53:41 -0400 Subject: [PATCH] Store pubkeys in TRDescriptor::MakeScripts When expanding the scripts for a TRDescriptor, also store the pubkeys in the FlatSigningProvider. --- src/script/descriptor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/script/descriptor.cpp b/src/script/descriptor.cpp index 621a1b9fd6a..c3b4d1ddaa9 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