refactor: allowFree -> ignoreFees

This commit is contained in:
UdjinM6 2015-06-23 18:24:20 +03:00
parent db18ce0480
commit 154567bf5d

View File

@ -4610,7 +4610,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
CTransaction tx;
//masternode signed transaction
bool allowFree = false;
bool ignoreFees = false;
CTxIn vin;
vector<unsigned char> vchSig;
int64_t sigTime;
@ -4641,7 +4641,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
LogPrintf("dstx: Got Masternode transaction %s\n", tx.GetHash().ToString().c_str());
allowFree = true;
ignoreFees = true;
pmn->allowFreeTx = false;
if(!mapDarksendBroadcastTxes.count(tx.GetHash())){
@ -4666,7 +4666,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
mapAlreadyAskedFor.erase(inv);
if (AcceptToMemoryPool(mempool, state, tx, true, &fMissingInputs, false, allowFree))
if (AcceptToMemoryPool(mempool, state, tx, true, &fMissingInputs, false, ignoreFees))
{
mempool.check(pcoinsTip);
RelayTransaction(tx);