diff options
author | MarcoFalke <falke.marco@gmail.com> | 2020-07-11 13:56:13 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2020-07-11 14:24:36 +0200 |
commit | facd7dd3d1f9d51e1133974ff69eeb48f5ae282b (patch) | |
tree | 8e73b4e97801363108dee58962700e07efa55bf4 /src/wallet/wallet.cpp | |
parent | 5f96bce9b7f38c687817d58e8b54a5b7ebfe91b3 (diff) |
wallet: Fix typo in comments; Simplify assert
Diffstat (limited to 'src/wallet/wallet.cpp')
-rw-r--r-- | src/wallet/wallet.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 256fd753db..8eec00993f 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -1437,8 +1437,8 @@ bool CWallet::LoadWalletFlags(uint64_t flags) bool CWallet::AddWalletFlags(uint64_t flags) { LOCK(cs_wallet); - // We should never be writing unknown onon-tolerable wallet flags - assert(!(((flags & KNOWN_WALLET_FLAGS) >> 32) ^ (flags >> 32))); + // We should never be writing unknown non-tolerable wallet flags + assert(((flags & KNOWN_WALLET_FLAGS) >> 32) == (flags >> 32)); if (!WalletBatch(*database).WriteWalletFlags(flags)) { throw std::runtime_error(std::string(__func__) + ": writing wallet flags failed"); } |