MCPcopy Create free account
hub / github.com/ElementsProject/elements / WriteDescriptor

Method WriteDescriptor

src/wallet/scriptpubkeyman.cpp:2297–2304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2295}
2296
2297void DescriptorScriptPubKeyMan::WriteDescriptor()
2298{
2299 LOCK(cs_desc_man);
2300 WalletBatch batch(m_storage.GetDatabase());
2301 if (!batch.WriteDescriptor(GetID(), m_wallet_descriptor)) {
2302 throw std::runtime_error(std::string(__func__) + ": writing descriptor failed");
2303 }
2304}
2305
2306const WalletDescriptor DescriptorScriptPubKeyMan::GetWalletDescriptor() const
2307{

Callers 4

GetNewDestinationMethod · 0.45
ReturnDestinationMethod · 0.45
TopUpMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected