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.
This commit is contained in:
Dave Collins 2013-12-25 12:15:59 -06:00
parent 4c184ead54
commit edf8f2f224

View file

@ -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))