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
1 changed files with 1 additions and 1 deletions
|
@ -871,7 +871,7 @@ func (mp *txMemPool) maybeAcceptTransaction(tx *btcutil.Tx, isOrphan *bool) erro
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add to transaction pool.
|
// Add to transaction pool.
|
||||||
mp.addTransaction(tx, nextBlockHeight-1, txFee)
|
mp.addTransaction(tx, curHeight, txFee)
|
||||||
|
|
||||||
txmpLog.Debugf("Accepted transaction %v (pool size: %v)", txHash,
|
txmpLog.Debugf("Accepted transaction %v (pool size: %v)", txHash,
|
||||||
len(mp.pool))
|
len(mp.pool))
|
||||||
|
|
Loading…
Add table
Reference in a new issue