Remove -mempoolreplacement option

This commit is contained in:
Jorge Timón 2017-08-26 05:21:09 +02:00
parent 283fa9fc60
commit e17e0b81b6
No known key found for this signature in database
GPG key ID: 8866C18EA1C944A2
5 changed files with 4 additions and 31 deletions

View file

@ -80,7 +80,6 @@ bool fCheckpointsEnabled = DEFAULT_CHECKPOINTS_ENABLED;
size_t nCoinCacheUsage = 5000 * 300;
uint64_t nPruneTarget = 0;
int64_t nMaxTipAge = DEFAULT_MAX_TIP_AGE;
bool fEnableReplacement = DEFAULT_ENABLE_REPLACEMENT;
uint256 hashAssumeValid;
@ -1099,15 +1098,10 @@ bool AcceptToMemoryPoolWorker(CTxMemPool& pool, CValidationState& state, const C
// unconfirmed ancestors anyway; doing otherwise is hopelessly
// insecure.
bool fReplacementOptOut = true;
if (fEnableReplacement)
{
BOOST_FOREACH(const CTxIn &_txin, ptxConflicting->vin)
{
if (_txin.nSequence < std::numeric_limits<unsigned int>::max()-1)
{
fReplacementOptOut = false;
break;
}
BOOST_FOREACH(const CTxIn &_txin, ptxConflicting->vin) {
if (_txin.nSequence < std::numeric_limits<unsigned int>::max()-1) {
fReplacementOptOut = false;
break;
}
}
if (fReplacementOptOut)