File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -2043,6 +2043,19 @@ TransactionError DescriptorScriptPubKeyMan::FillPSBT(PartiallySignedTransaction&
2043
2043
2044
2044
std::unique_ptr<CKeyMetadata> DescriptorScriptPubKeyMan::GetMetadata (const CTxDestination& dest) const
2045
2045
{
2046
+ std::unique_ptr<SigningProvider> provider = GetSigningProvider (GetScriptForDestination (dest));
2047
+ if (provider) {
2048
+ KeyOriginInfo orig;
2049
+ CKeyID key_id = GetKeyForDestination (*provider, dest);
2050
+ if (provider->GetKeyOrigin (key_id, orig)) {
2051
+ LOCK (cs_desc_man);
2052
+ std::unique_ptr<CKeyMetadata> meta = MakeUnique<CKeyMetadata>();
2053
+ meta->key_origin = orig;
2054
+ meta->has_key_origin = true ;
2055
+ meta->nCreateTime = m_wallet_descriptor.creation_time ;
2056
+ return meta;
2057
+ }
2058
+ }
2046
2059
return nullptr ;
2047
2060
}
2048
2061
You can’t perform that action at this time.
0 commit comments