| 1900 | } |
| 1901 | |
| 1902 | void DescriptorScriptPubKeyMan::AddDescriptorKey(const CKey& key, const CPubKey &pubkey) |
| 1903 | { |
| 1904 | LOCK(cs_desc_man); |
| 1905 | WalletBatch batch(m_storage.GetDatabase()); |
| 1906 | if (!AddDescriptorKeyWithDB(batch, key, pubkey)) { |
| 1907 | throw std::runtime_error(std::string(__func__) + ": writing descriptor private key failed"); |
| 1908 | } |
| 1909 | } |
| 1910 | |
| 1911 | bool DescriptorScriptPubKeyMan::AddDescriptorKeyWithDB(WalletBatch& batch, const CKey& key, const CPubKey &pubkey) |
| 1912 | { |