| 162 | } |
| 163 | |
| 164 | bool WalletBatch::EraseWatchOnly(const CScript &dest) |
| 165 | { |
| 166 | if (!EraseIC(std::make_pair(DBKeys::WATCHMETA, dest))) { |
| 167 | return false; |
| 168 | } |
| 169 | return EraseIC(std::make_pair(DBKeys::WATCHS, dest)); |
| 170 | } |
| 171 | |
| 172 | bool WalletBatch::WriteBestBlock(const CBlockLocator& locator) |
| 173 | { |