mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-08-29 21:51:03 +02:00
Store pubkeys in TRDescriptor::MakeScripts
When expanding the scripts for a TRDescriptor, also store the pubkeys in the FlatSigningProvider.
This commit is contained in:
@@ -851,6 +851,7 @@ protected:
|
|||||||
builder.Finalize(xpk);
|
builder.Finalize(xpk);
|
||||||
WitnessV1Taproot output = builder.GetOutput();
|
WitnessV1Taproot output = builder.GetOutput();
|
||||||
out.tr_spenddata[output].Merge(builder.GetSpendData());
|
out.tr_spenddata[output].Merge(builder.GetSpendData());
|
||||||
|
out.pubkeys.emplace(keys[0].GetID(), keys[0]);
|
||||||
return Vector(GetScriptForDestination(output));
|
return Vector(GetScriptForDestination(output));
|
||||||
}
|
}
|
||||||
bool ToStringSubScriptHelper(const SigningProvider* arg, std::string& ret, const StringType type, const DescriptorCache* cache = nullptr) const override
|
bool ToStringSubScriptHelper(const SigningProvider* arg, std::string& ret, const StringType type, const DescriptorCache* cache = nullptr) const override
|
||||||
|
Reference in New Issue
Block a user