diff options
| author | gubatron <[email protected]> | 2017-02-19 10:23:04 -0700 |
|---|---|---|
| committer | gubatron <[email protected]> | 2017-02-21 20:44:23 -0700 |
| commit | eaea2bbb411c5d878e991d9082ca037628efce42 (patch) | |
| tree | ba5a1225fb6f2ab064a20ed2babd235674aa89e4 /src/txmempool.cpp | |
| parent | Merge #9795: doc: Update manpages for master (laanwj) (diff) | |
| download | discoin-eaea2bbb411c5d878e991d9082ca037628efce42.tar.xz discoin-eaea2bbb411c5d878e991d9082ca037628efce42.zip | |
Removed redundant parameter from mempool.PrioritiseTransaction
(Also made the `const uint256 hash` parameter a `const uint256& hash` as suggested by @sdaftuar)
Diffstat (limited to 'src/txmempool.cpp')
| -rw-r--r-- | src/txmempool.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/txmempool.cpp b/src/txmempool.cpp index 5842dd88d..942a6fcce 100644 --- a/src/txmempool.cpp +++ b/src/txmempool.cpp @@ -920,7 +920,7 @@ CTxMemPool::ReadFeeEstimates(CAutoFile& filein) return true; } -void CTxMemPool::PrioritiseTransaction(const uint256 hash, const std::string strHash, double dPriorityDelta, const CAmount& nFeeDelta) +void CTxMemPool::PrioritiseTransaction(const uint256& hash, double dPriorityDelta, const CAmount& nFeeDelta) { { LOCK(cs); @@ -940,7 +940,7 @@ void CTxMemPool::PrioritiseTransaction(const uint256 hash, const std::string str } } } - LogPrintf("PrioritiseTransaction: %s priority += %f, fee += %d\n", strHash, dPriorityDelta, FormatMoney(nFeeDelta)); + LogPrintf("PrioritiseTransaction: %s priority += %f, fee += %d\n", hash.ToString(), dPriorityDelta, FormatMoney(nFeeDelta)); } void CTxMemPool::ApplyDeltas(const uint256 hash, double &dPriorityDelta, CAmount &nFeeDelta) const |