mirror of
https://github.com/btcsuite/btcd.git
synced 2025-01-19 05:33:36 +01:00
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:
parent
4c184ead54
commit
edf8f2f224
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user