From edf8f2f224680a97e626b63c81f2cd7e175ee5a3 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Wed, 25 Dec 2013 12:15:59 -0600 Subject: [PATCH] Use curHeight in mempool transaction add. Since there is already a variable for the current block height in addition to the next block height, use the existing curHeight variable instead doing nextBlockHeight-1 in mempool add. --- mempool.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mempool.go b/mempool.go index d8cbf956..322bf23a 100644 --- a/mempool.go +++ b/mempool.go @@ -871,7 +871,7 @@ func (mp *txMemPool) maybeAcceptTransaction(tx *btcutil.Tx, isOrphan *bool) erro } // Add to transaction pool. - mp.addTransaction(tx, nextBlockHeight-1, txFee) + mp.addTransaction(tx, curHeight, txFee) txmpLog.Debugf("Accepted transaction %v (pool size: %v)", txHash, len(mp.pool))