Skip to content

Commit

Permalink
Merge pull request jl777#1050 from jl777/beta
Browse files Browse the repository at this point in the history
Prevent height -> nLockTime
  • Loading branch information
jl777 committed Dec 8, 2018
2 parents f2befab + 54431fd commit bb48971
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wallet/wallet.cpp
Expand Up @@ -3615,7 +3615,7 @@ bool CWallet::CreateTransaction(const vector<CRecipient>& vecSend, CWalletTx& wt
if (!NetworkUpgradeActive(nextBlockHeight, Params().GetConsensus(), Consensus::UPGRADE_SAPLING)) {
max_tx_size = MAX_TX_SIZE_BEFORE_SAPLING;
}

/*
// Discourage fee sniping.
//
// However because of a off-by-one-error in previous versions we need to
Expand All @@ -3636,7 +3636,7 @@ bool CWallet::CreateTransaction(const vector<CRecipient>& vecSend, CWalletTx& wt
txNew.nLockTime = std::max(0, (int)txNew.nLockTime - GetRandInt(100));
assert(txNew.nLockTime <= (unsigned int)chainActive.Height());
assert(txNew.nLockTime < LOCKTIME_THRESHOLD);
assert(txNew.nLockTime < LOCKTIME_THRESHOLD);*/

{
LOCK2(cs_main, cs_wallet);
Expand Down

0 comments on commit bb48971

Please sign in to comment.