Remove unneeded feerate param from RelayTransaction/AcceptToMemoryPool.

This commit is contained in:
Gregory Maxwell
2016-04-20 19:38:19 +00:00
committed by lateminer
parent 16b0e12385
commit 89655c3a1e
7 changed files with 18 additions and 26 deletions

View File

@@ -1838,9 +1838,7 @@ bool CWalletTx::RelayWalletTransaction()
/* GetDepthInMainChain already catches known conflicts. */
if (InMempool() || AcceptToMemoryPool(false, maxTxFee, state)) {
LogPrintf("Relaying wtx %s\n", GetHash().ToString());
CFeeRate feeRate;
mempool.lookupFeeRate(GetHash(), feeRate);
RelayTransaction((CTransaction)*this, feeRate);
RelayTransaction((CTransaction)*this);
return true;
}
}
@@ -4102,5 +4100,5 @@ int CMerkleTx::GetBlocksToMaturity() const
bool CMerkleTx::AcceptToMemoryPool(bool fLimitFree, CAmount nAbsurdFee, CValidationState& state)
{
return ::AcceptToMemoryPool(mempool, state, *this, fLimitFree, NULL, NULL, false, nAbsurdFee);
return ::AcceptToMemoryPool(mempool, state, *this, fLimitFree, NULL, false, nAbsurdFee);
}