Skip to content

Commit 54b3699

Browse files
committed
Store pubkeys in TRDescriptor::MakeScripts
When expanding the scripts for a TRDescriptor, also store the pubkeys in the FlatSigningProvider.
1 parent ffdab41 commit 54b3699

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/script/descriptor.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -851,6 +851,7 @@ class TRDescriptor final : public DescriptorImpl
851851
builder.Finalize(xpk);
852852
WitnessV1Taproot output = builder.GetOutput();
853853
out.tr_spenddata[output].Merge(builder.GetSpendData());
854+
out.pubkeys.emplace(keys[0].GetID(), keys[0]);
854855
return Vector(GetScriptForDestination(output));
855856
}
856857
bool ToStringSubScriptHelper(const SigningProvider* arg, std::string& ret, const StringType type, const DescriptorCache* cache = nullptr) const override

0 commit comments

Comments
 (0)