From e03ef7f1082459e7c458601e59cfd671b09ba13c Mon Sep 17 00:00:00 2001 From: Duke Leto Date: Mon, 6 Apr 2020 23:05:20 -0400 Subject: [PATCH] Avoid notes with height=0 --- src/wallet/wallet.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 22d193a8c..ef91d9089 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -5360,6 +5360,9 @@ void CWallet::GetFilteredNotes( if (minDepth > 1) { int nHeight = tx_height(wtx.GetHash()); + if ( nHeight == 0 ) { + continue; + } int nDepth = wtx.GetDepthInMainChain(); int dpowconfs = komodo_dpowconfs(nHeight,nDepth); if ( dpowconfs < minDepth || dpowconfs > maxDepth) {