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

Method ReturnDestination

src/wallet/scriptpubkeyman.cpp:982–991  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

980}
981
982void DescriptorScriptPubKeyMan::ReturnDestination(int64_t index, bool internal, const CTxDestination& addr)
983{
984 LOCK(cs_desc_man);
985 // Only return when the index was the most recent
986 if (m_wallet_descriptor.next_index - 1 == index) {
987 m_wallet_descriptor.next_index--;
988 }
989 WalletBatch(m_storage.GetDatabase()).WriteDescriptor(GetID(), m_wallet_descriptor);
990 NotifyCanGetAddressesChanged();
991}
992
993std::map<CKeyID, CKey> DescriptorScriptPubKeyMan::GetKeys() const
994{

Callers

nothing calls this directly

Calls 3

WalletBatchClass · 0.70
WriteDescriptorMethod · 0.45

Tested by

no test coverage detected