Commit 444d05a1 authored by Ashot's avatar Ashot
Browse files

Merge branch 'relay-instantx-when-spork-on' into 'Current-dev'

Relay instant transaction only when spork is on

See merge request crown/crown-core!125
parents e1c657db 15352a22
Showing with 5 additions and 2 deletions
+5 -2
......@@ -1010,7 +1010,8 @@ void CWalletTx::RelayWalletTransaction(std::string strCommand)
uint256 hash = GetHash();
LogPrintf("Relaying wtx %s\n", hash.ToString());
if(strCommand == "ix"){
if (strCommand == "ix" && IsSporkActive(SPORK_2_INSTANTX))
{
if (this->vout.size() > 0)
{
CTxDestination dest;
......@@ -1019,7 +1020,9 @@ void CWalletTx::RelayWalletTransaction(std::string strCommand)
}
g_instantSend->CreateNewLock(((CTransaction)*this));
RelayTransactionLockReq((CTransaction)*this, true);
} else {
}
else
{
RelayTransaction((CTransaction)*this);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment