diff options
author | MarcoFalke <falke.marco@gmail.com> | 2022-01-14 11:51:38 +0100 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2022-01-25 10:15:12 +0100 |
commit | fa272eab44553df9b0bed3ca20caf2a7bd193680 (patch) | |
tree | 98c2014dec777f8d2b04e2360874e8c2f2c09071 /src/wallet/rpc/coins.cpp | |
parent | 888841ea8d38fc059ca06ef67af7f31f8d8418a4 (diff) | |
download | bitcoin-fa272eab44553df9b0bed3ca20caf2a7bd193680.tar.xz |
wallet: Avoid dropping confirmed coins
Diffstat (limited to 'src/wallet/rpc/coins.cpp')
-rw-r--r-- | src/wallet/rpc/coins.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/rpc/coins.cpp b/src/wallet/rpc/coins.cpp index f10de11662..035541babd 100644 --- a/src/wallet/rpc/coins.cpp +++ b/src/wallet/rpc/coins.cpp @@ -60,8 +60,8 @@ static CAmount GetReceived(const CWallet& wallet, const UniValue& params, bool b if (depth < min_depth // Coinbase with less than 1 confirmation is no longer in the main chain || (wtx.IsCoinBase() && (depth < 1 || !include_coinbase)) - || (wallet.IsTxImmatureCoinBase(wtx) && !include_immature_coinbase) - || !wallet.chain().checkFinalTx(*wtx.tx)) { + || (wallet.IsTxImmatureCoinBase(wtx) && !include_immature_coinbase)) + { continue; } |