diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 1c2afd4cd7..0a7f815b07 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -2332,7 +2332,7 @@ void MaybeResendWalletTxs() CWallet::Balance CWallet::GetBalance(const int min_depth, bool avoid_reuse) const { Balance ret; - isminefilter reuse_filter = avoid_reuse ? 0 : ISMINE_USED; + isminefilter reuse_filter = avoid_reuse ? ISMINE_NO : ISMINE_USED; { auto locked_chain = chain().lock(); LOCK(cs_wallet);