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) {