diff options
author | Alex Morcos <morcos@chaincode.com> | 2017-09-12 12:30:26 -0400 |
---|---|---|
committer | Alex Morcos <morcos@chaincode.com> | 2017-09-12 12:30:26 -0400 |
commit | fd849e1b039bcb5856aa705269437211194cdfee (patch) | |
tree | 0d68822edc4af8ed18c3331919b8759b7e6ab686 /src/wallet/wallet.cpp | |
parent | b9bceaf1c081a84d9fcc680372614e797b168a9e (diff) |
Change AcceptToMemoryPool function signature
Combine fLimitFree and fOverrideMempoolLimit into a single boolean:
bypass_limits. This is used to indicate that mempool limiting based on feerate
should be bypassed. It is used when readding transactions from a reorg and then
the mempool is trimmed to size after all transactions are added and they can be
evaluated in the context of their descendants. No changes to behavior.
Diffstat (limited to 'src/wallet/wallet.cpp')
-rw-r--r-- | src/wallet/wallet.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index d376de2337..575eca0d75 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -4014,5 +4014,6 @@ int CMerkleTx::GetBlocksToMaturity() const bool CMerkleTx::AcceptToMemoryPool(const CAmount& nAbsurdFee, CValidationState& state) { - return ::AcceptToMemoryPool(mempool, state, tx, true, nullptr, nullptr, false, nAbsurdFee); + return ::AcceptToMemoryPool(mempool, state, tx, nullptr /* pfMissingInputs */, + nullptr /* plTxnReplaced */, false /* bypass_limits */, nAbsurdFee); } |