Skip to content

Commit fa28bfa

Browse files
author
MarcoFalke
committed
[wallet] Set fLimitFree = true
1 parent 3685e0c commit fa28bfa

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/wallet/wallet.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1405,7 +1405,7 @@ void CWallet::ReacceptWalletTransactions()
14051405
CWalletTx& wtx = *(item.second);
14061406

14071407
LOCK(mempool.cs);
1408-
wtx.AcceptToMemoryPool(false, maxTxFee);
1408+
wtx.AcceptToMemoryPool(maxTxFee);
14091409
}
14101410
}
14111411

@@ -2450,8 +2450,7 @@ bool CWallet::CommitTransaction(CWalletTx& wtxNew, CReserveKey& reservekey)
24502450
if (fBroadcastTransactions)
24512451
{
24522452
// Broadcast
2453-
if (!wtxNew.AcceptToMemoryPool(false, maxTxFee))
2454-
{
2453+
if (!wtxNew.AcceptToMemoryPool(maxTxFee)) {
24552454
// This must not fail. The transaction has already been signed and recorded.
24562455
LogPrintf("CommitTransaction(): Error: Transaction not valid\n");
24572456
return false;
@@ -3563,8 +3562,8 @@ int CMerkleTx::GetBlocksToMaturity() const
35633562
}
35643563

35653564

3566-
bool CMerkleTx::AcceptToMemoryPool(bool fLimitFree, CAmount nAbsurdFee)
3565+
bool CMerkleTx::AcceptToMemoryPool(const CAmount& nAbsurdFee)
35673566
{
35683567
CValidationState state;
3569-
return ::AcceptToMemoryPool(mempool, state, *this, fLimitFree, NULL, false, nAbsurdFee);
3568+
return ::AcceptToMemoryPool(mempool, state, *this, true, NULL, false, nAbsurdFee);
35703569
}

src/wallet/wallet.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ class CMerkleTx : public CTransaction
212212
bool IsInMainChain() const { const CBlockIndex *pindexRet; return GetDepthInMainChain(pindexRet) > 0; }
213213
int GetBlocksToMaturity() const;
214214
/** Pass this transaction to the mempool. Fails if absolute fee exceeds absurd fee. */
215-
bool AcceptToMemoryPool(bool fLimitFree, const CAmount nAbsurdFee);
215+
bool AcceptToMemoryPool(const CAmount& nAbsurdFee);
216216
bool hashUnset() const { return (hashBlock.IsNull() || hashBlock == ABANDON_HASH); }
217217
bool isAbandoned() const { return (hashBlock == ABANDON_HASH); }
218218
void setAbandoned() { hashBlock = ABANDON_HASH; }

0 commit comments

Comments
 (0)