mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
Merge f08d914a67 into merged_master (Bitcoin PR bitcoin/bitcoin#27920)
This commit is contained in:
commit
bc6f151cb8
6 changed files with 135 additions and 72 deletions
|
|
@ -2591,10 +2591,7 @@ std::unique_ptr<CKeyMetadata> DescriptorScriptPubKeyMan::GetMetadata(const CTxDe
|
|||
uint256 DescriptorScriptPubKeyMan::GetID() const
|
||||
{
|
||||
LOCK(cs_desc_man);
|
||||
std::string desc_str = m_wallet_descriptor.descriptor->ToString();
|
||||
uint256 id;
|
||||
CSHA256().Write((unsigned char*)desc_str.data(), desc_str.size()).Finalize(id.begin());
|
||||
return id;
|
||||
return DescriptorID(*m_wallet_descriptor.descriptor);
|
||||
}
|
||||
|
||||
void DescriptorScriptPubKeyMan::SetCache(const DescriptorCache& cache)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue