| 1505 | } |
| 1506 | |
| 1507 | bool CWallet::AddWalletFlags(uint64_t flags) |
| 1508 | { |
| 1509 | LOCK(cs_wallet); |
| 1510 | // We should never be writing unknown non-tolerable wallet flags |
| 1511 | assert(((flags & KNOWN_WALLET_FLAGS) >> 32) == (flags >> 32)); |
| 1512 | if (!WalletBatch(GetDatabase()).WriteWalletFlags(flags)) { |
| 1513 | throw std::runtime_error(std::string(__func__) + ": writing wallet flags failed"); |
| 1514 | } |
| 1515 | |
| 1516 | return LoadWalletFlags(flags); |
| 1517 | } |
| 1518 | |
| 1519 | bool CWallet::ImportScripts(const std::set<CScript> scripts, int64_t timestamp) |
| 1520 | { |
no test coverage detected