mirror of
https://github.com/jwinterm/myriadcoin.git
synced 2026-10-17 05:41:34 +02:00
Testnet Stealth enable
This commit is contained in:
@@ -227,7 +227,8 @@ WalletModel::SendCoinsReturn WalletModel::prepareTransaction(WalletModelTransact
|
||||
|
||||
if (rcp.typeInd == AddressTableModel::AT_Stealth)
|
||||
{
|
||||
if (chainActive.Height() < BLOCK_STEALTH_START)
|
||||
if ( (!TestNet() && (chainActive.Height() < BLOCK_STEALTH_START))
|
||||
|| (TestNet() && (chainActive.Height() < 200)) )
|
||||
{
|
||||
emit message(tr("Send Coins"), tr("Stealth addresses not yet supported"),
|
||||
CClientUIInterface::MSG_ERROR);
|
||||
|
||||
+3
-1
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user