diff options
author | Matt Corallo <git@bluematt.me> | 2015-10-02 14:17:27 -0700 |
---|---|---|
committer | Matt Corallo <git@bluematt.me> | 2015-10-13 00:44:03 -0700 |
commit | 9c9b66f771ad904cd665f7f5f68e3279ebb2fa7e (patch) | |
tree | ee023e54b896bcbe5d5eee7bb87da639e5bd852a /src/txmempool.h | |
parent | 49b6fd5663dfe081d127cd1eb11407c4d3eaf93d (diff) |
Fix calling mempool directly, instead of pool, in ATMP
Diffstat (limited to 'src/txmempool.h')
-rw-r--r-- | src/txmempool.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/txmempool.h b/src/txmempool.h index 635b66fb85..cee1a146da 100644 --- a/src/txmempool.h +++ b/src/txmempool.h @@ -83,7 +83,7 @@ public: const CTransaction& GetTx() const { return this->tx; } double GetPriority(unsigned int currentHeight) const; - CAmount GetFee() const { return nFee; } + const CAmount& GetFee() const { return nFee; } size_t GetTxSize() const { return nTxSize; } int64_t GetTime() const { return nTime; } unsigned int GetHeight() const { return nHeight; } @@ -371,7 +371,7 @@ public: /** Affect CreateNewBlock prioritisation of transactions */ void PrioritiseTransaction(const uint256 hash, const std::string strHash, double dPriorityDelta, const CAmount& nFeeDelta); - void ApplyDeltas(const uint256 hash, double &dPriorityDelta, CAmount &nFeeDelta); + void ApplyDeltas(const uint256 hash, double &dPriorityDelta, CAmount &nFeeDelta) const; void ClearPrioritisation(const uint256 hash); public: |