| 230 | } |
| 231 | |
| 232 | bool WalletBatch::WriteCryptedDescriptorKey(const uint256& desc_id, const CPubKey& pubkey, const std::vector<unsigned char>& secret) |
| 233 | { |
| 234 | if (!WriteIC(std::make_pair(DBKeys::WALLETDESCRIPTORCKEY, std::make_pair(desc_id, pubkey)), secret, false)) { |
| 235 | return false; |
| 236 | } |
| 237 | EraseIC(std::make_pair(DBKeys::WALLETDESCRIPTORKEY, std::make_pair(desc_id, pubkey))); |
| 238 | return true; |
| 239 | } |
| 240 | |
| 241 | bool WalletBatch::WriteDescriptor(const uint256& desc_id, const WalletDescriptor& descriptor) |
| 242 | { |
no outgoing calls
no test coverage detected