Avoid notes with height=0

This commit is contained in:
Duke Leto
2020-04-06 23:05:20 -04:00
parent 28f5f51e5e
commit e03ef7f108

View File

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