Testnet Stealth enable

This commit is contained in:
myriadcoin
2014-09-26 02:24:54 +02:00
parent e580967a54
commit f0d582ade0
2 changed files with 5 additions and 2 deletions
+3 -1
View File
@@ -1834,7 +1834,9 @@ string CWallet::SendStealthMoney(CScript scriptPubKey, int64_t nValue, std::vect
CReserveKey reservekey(this);
int64_t nFeeRequired;
if (chainActive.Height() < BLOCK_STEALTH_START)
if ( (!TestNet() && (chainActive.Height() < BLOCK_STEALTH_START))
|| (TestNet() && (chainActive.Height() < 200))
)
{
string strError = _("Error: Stealth addresses not yet supported");
LogPrintf("SendStealthMoney() : %s", strError.c_str());