MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / WriteDescriptor

Method WriteDescriptor

src/wallet/scriptpubkeyman.cpp:1517–1524  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1515}
1516
1517void DescriptorScriptPubKeyMan::WriteDescriptor()
1518{
1519 LOCK(cs_desc_man);
1520 WalletBatch batch(m_storage.GetDatabase());
1521 if (!batch.WriteDescriptor(GetID(), m_wallet_descriptor)) {
1522 throw std::runtime_error(std::string(__func__) + ": writing descriptor failed");
1523 }
1524}
1525
1526WalletDescriptor DescriptorScriptPubKeyMan::GetWalletDescriptor() const
1527{

Callers 4

GetNewDestinationMethod · 0.45
ReturnDestinationMethod · 0.45
TopUpWithDBMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected