diff options
author | MarcoFalke <falke.marco@gmail.com> | 2016-02-03 13:14:23 +0100 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2016-02-03 13:14:23 +0100 |
commit | fad6244879be8b9916e85cff4ecdb4377dd62ee2 (patch) | |
tree | f6bae298399f9cdac1b4c70a21cde8a4022eef67 /src | |
parent | fa762d0f00ba1ad381a749e139f37aef673b70ba (diff) |
ATMP: make nAbsurdFee const
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 4 | ||||
-rw-r--r-- | src/wallet/wallet.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp index 9ed9d0e0b2..e4e4bc62b3 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -812,8 +812,8 @@ std::string FormatStateMessage(const CValidationState &state) state.GetRejectCode()); } -bool AcceptToMemoryPoolWorker(CTxMemPool& pool, CValidationState &state, const CTransaction &tx, bool fLimitFree, - bool* pfMissingInputs, bool fOverrideMempoolLimit, CAmount nAbsurdFee, +bool AcceptToMemoryPoolWorker(CTxMemPool& pool, CValidationState& state, const CTransaction& tx, bool fLimitFree, + bool* pfMissingInputs, bool fOverrideMempoolLimit, const CAmount nAbsurdFee, std::vector<uint256>& vHashTxnToUncache) { const uint256 hash = tx.GetHash(); diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h index 5072042b8d..c02323d6ec 100644 --- a/src/wallet/wallet.h +++ b/src/wallet/wallet.h @@ -205,7 +205,7 @@ public: bool IsInMainChain() const { const CBlockIndex *pindexRet; return GetDepthInMainChain(pindexRet) > 0; } int GetBlocksToMaturity() const; /** Pass this transaction to the mempool. Fails if absolute fee exceeds absurd fee. */ - bool AcceptToMemoryPool(bool fLimitFree, CAmount nAbsurdFee); + bool AcceptToMemoryPool(bool fLimitFree, const CAmount nAbsurdFee); bool hashUnset() const { return (hashBlock.IsNull() || hashBlock == ABANDON_HASH); } bool isAbandoned() const { return (hashBlock == ABANDON_HASH); } void setAbandoned() { hashBlock = ABANDON_HASH; } |