diff --git a/src/dions.cpp b/src/dions.cpp index 13068173..5ffc0031 100644 --- a/src/dions.cpp +++ b/src/dions.cpp @@ -1968,10 +1968,16 @@ bool searchAliasEncrypted2(string alias, uint256& wtxInHash) continue; const int nHeight = tx.GetHeightInMainChain(); + if(nHeight == -1) continue; + assert(nHeight >= 0); + const int ex = nHeight + scaleMonitor() - pindexBest->nHeight; + if(ex <= 0) + continue; + string strAddress = ""; aliasAddress(tx, strAddress); string decrypted;