mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-18 02:40:45 +00:00
parent
ed6f9e82fc
commit
cbb0605e0f
1 changed files with 1 additions and 2 deletions
|
|
@ -17,7 +17,6 @@
|
||||||
package txpool
|
package txpool
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"container/heap"
|
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"math"
|
"math"
|
||||||
|
|
@ -858,7 +857,7 @@ func (pool *TxPool) add(tx *types.Transaction, local bool) (replaced bool, err e
|
||||||
// Add all transactions back to the priced queue
|
// Add all transactions back to the priced queue
|
||||||
if replacesPending {
|
if replacesPending {
|
||||||
for _, dropTx := range drop {
|
for _, dropTx := range drop {
|
||||||
heap.Push(&pool.priced.urgent, dropTx)
|
pool.priced.Put(dropTx, false)
|
||||||
}
|
}
|
||||||
log.Trace("Discarding future transaction replacing pending tx", "hash", hash)
|
log.Trace("Discarding future transaction replacing pending tx", "hash", hash)
|
||||||
return false, ErrFutureReplacePending
|
return false, ErrFutureReplacePending
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue