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/receive.cpp | |
parent | 888841ea8d38fc059ca06ef67af7f31f8d8418a4 (diff) | |
download | bitcoin-fa272eab44553df9b0bed3ca20caf2a7bd193680.tar.xz |
wallet: Avoid dropping confirmed coins
Diffstat (limited to 'src/wallet/receive.cpp')
-rw-r--r-- | src/wallet/receive.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/wallet/receive.cpp b/src/wallet/receive.cpp index e598d6f979..1a6f06213c 100644 --- a/src/wallet/receive.cpp +++ b/src/wallet/receive.cpp @@ -279,8 +279,6 @@ bool CachedTxIsFromMe(const CWallet& wallet, const CWalletTx& wtx, const isminef bool CachedTxIsTrusted(const CWallet& wallet, const CWalletTx& wtx, std::set<uint256>& trusted_parents) { AssertLockHeld(wallet.cs_wallet); - // Quick answer in most cases - if (!wallet.chain().checkFinalTx(*wtx.tx)) return false; int nDepth = wallet.GetTxDepthInMainChain(wtx); if (nDepth >= 1) return true; if (nDepth < 0) return false; |