aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet.cpp
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2020-07-11 13:56:13 +0200
committerMarcoFalke <falke.marco@gmail.com>2020-07-11 14:24:36 +0200
commitfacd7dd3d1f9d51e1133974ff69eeb48f5ae282b (patch)
tree8e73b4e97801363108dee58962700e07efa55bf4 /src/wallet/wallet.cpp
parent5f96bce9b7f38c687817d58e8b54a5b7ebfe91b3 (diff)
downloadbitcoin-facd7dd3d1f9d51e1133974ff69eeb48f5ae282b.tar.xz
wallet: Fix typo in comments; Simplify assert
Diffstat (limited to 'src/wallet/wallet.cpp')
-rw-r--r--src/wallet/wallet.cpp4
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");
}