| 1040 | } |
| 1041 | |
| 1042 | bool DescriptorScriptPubKeyMan::TopUp(unsigned int size) |
| 1043 | { |
| 1044 | WalletBatch batch(m_storage.GetDatabase()); |
| 1045 | if (!batch.TxnBegin()) return false; |
| 1046 | bool res = TopUpWithDB(batch, size); |
| 1047 | if (!batch.TxnCommit()) throw std::runtime_error(strprintf("Error during descriptors keypool top up. Cannot commit changes for wallet [%s]", m_storage.LogName())); |
| 1048 | return res; |
| 1049 | } |
| 1050 | |
| 1051 | bool DescriptorScriptPubKeyMan::TopUpWithDB(WalletBatch& batch, unsigned int size) |
| 1052 | { |
no test coverage detected