aboutsummaryrefslogtreecommitdiff
path: root/src/bench
diff options
context:
space:
mode:
authorMarcoFalke <[email protected]>2018-07-30 09:11:13 -0400
committerMarcoFalke <[email protected]>2018-07-30 09:09:32 -0400
commitfa587773e59721e187cadc998f4dc236ad3aef0b (patch)
tree7bf61adc10e630e607c33347757a98d1b674f818 /src/bench
parenttx pool: Use the entry's hash instead of the one passed to addUnchecked (diff)
downloaddiscoin-fa587773e59721e187cadc998f4dc236ad3aef0b.tar.xz
discoin-fa587773e59721e187cadc998f4dc236ad3aef0b.zip
scripted-diff: Remove unused first argument to addUnchecked
-BEGIN VERIFY SCRIPT- git grep -l addUnchecked | xargs sed --regexp-extended -i -e 's/addUnchecked\([^)][^,]+,\s*/addUnchecked(/g' -END VERIFY SCRIPT-
Diffstat (limited to 'src/bench')
-rw-r--r--src/bench/mempool_eviction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bench/mempool_eviction.cpp b/src/bench/mempool_eviction.cpp
index d37291b90..4c5489fdc 100644
--- a/src/bench/mempool_eviction.cpp
+++ b/src/bench/mempool_eviction.cpp
@@ -16,7 +16,7 @@ static void AddTx(const CTransactionRef& tx, const CAmount& nFee, CTxMemPool& po
bool spendsCoinbase = false;
unsigned int sigOpCost = 4;
LockPoints lp;
- pool.addUnchecked(tx->GetHash(), CTxMemPoolEntry(
+ pool.addUnchecked(CTxMemPoolEntry(
tx, nFee, nTime, nHeight,
spendsCoinbase, sigOpCost, lp));
}