aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/rpc/transactions.cpp
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2022-01-14 11:51:38 +0100
committerMarcoFalke <falke.marco@gmail.com>2022-01-25 10:15:12 +0100
commitfa272eab44553df9b0bed3ca20caf2a7bd193680 (patch)
tree98c2014dec777f8d2b04e2360874e8c2f2c09071 /src/wallet/rpc/transactions.cpp
parent888841ea8d38fc059ca06ef67af7f31f8d8418a4 (diff)
downloadbitcoin-fa272eab44553df9b0bed3ca20caf2a7bd193680.tar.xz
wallet: Avoid dropping confirmed coins
Diffstat (limited to 'src/wallet/rpc/transactions.cpp')
-rw-r--r--src/wallet/rpc/transactions.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/rpc/transactions.cpp b/src/wallet/rpc/transactions.cpp
index d9034808f4..eef2c13ee1 100644
--- a/src/wallet/rpc/transactions.cpp
+++ b/src/wallet/rpc/transactions.cpp
@@ -114,8 +114,8 @@ static UniValue ListReceived(const CWallet& wallet, const UniValue& params, cons
// Coinbase with less than 1 confirmation is no longer in the main chain
if ((wtx.IsCoinBase() && (nDepth < 1 || !include_coinbase))
- || (wallet.IsTxImmatureCoinBase(wtx) && !include_immature_coinbase)
- || !wallet.chain().checkFinalTx(*wtx.tx)) {
+ || (wallet.IsTxImmatureCoinBase(wtx) && !include_immature_coinbase))
+ {
continue;
}