| 2295 | } |
| 2296 | |
| 2297 | void 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 | |
| 2306 | const WalletDescriptor DescriptorScriptPubKeyMan::GetWalletDescriptor() const |
| 2307 | { |
no outgoing calls
no test coverage detected