| 1515 | } |
| 1516 | |
| 1517 | void 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 | |
| 1526 | WalletDescriptor DescriptorScriptPubKeyMan::GetWalletDescriptor() const |
| 1527 | { |
no outgoing calls
no test coverage detected