mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +00:00
core/txpool: fix very high pending special transactions
This commit is contained in:
parent
afc4fcf8f5
commit
c254b08443
2 changed files with 2 additions and 2 deletions
|
|
@ -570,7 +570,7 @@ func (pool *TxPool) Pending(enforceTips bool) map[common.Address]types.Transacti
|
|||
// If the miner requests tip enforcement, cap the lists now
|
||||
if enforceTips && !pool.locals.contains(addr) {
|
||||
for i, tx := range txs {
|
||||
if tx.EffectiveGasTipIntCmp(pool.gasPrice, pool.priced.urgent.baseFee) < 0 {
|
||||
if !tx.IsSpecialTransaction() && tx.EffectiveGasTipIntCmp(pool.gasPrice, pool.priced.urgent.baseFee) < 0 {
|
||||
txs = txs[:i]
|
||||
break
|
||||
}
|
||||
|
|
|
|||
|
|
@ -481,7 +481,7 @@ func (tx *Transaction) TxCost(number *big.Int) *big.Int {
|
|||
|
||||
func (tx *Transaction) IsSpecialTransaction() bool {
|
||||
to := tx.To()
|
||||
return to != nil && (*to == common.RandomizeSMCBinary || *to == common.BlockSignersBinary)
|
||||
return to != nil && (*to == common.BlockSignersBinary || *to == common.RandomizeSMCBinary)
|
||||
}
|
||||
|
||||
func (tx *Transaction) IsTradingTransaction() bool {
|
||||
|
|
|
|||
Loading…
Reference in a new issue