mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-06-05 05:36:54 +00: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…
x
Reference in New Issue
Block a user