| 980 | } |
| 981 | |
| 982 | void 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 | |
| 993 | std::map<CKeyID, CKey> DescriptorScriptPubKeyMan::GetKeys() const |
| 994 | { |
nothing calls this directly
no test coverage detected