mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-25 06:55:32 +01:00
wallet: Fix typo in comments; Simplify assert
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user