mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 01:43:47 +00:00
add SetCode transaction to txpool
This commit is contained in:
parent
341647f186
commit
b6332ed79a
1 changed files with 2 additions and 2 deletions
|
|
@ -276,10 +276,10 @@ func New(config Config, chain BlockChain) *LegacyPool {
|
|||
}
|
||||
|
||||
// Filter returns whether the given transaction can be consumed by the legacy
|
||||
// pool, specifically, whether it is a Legacy, AccessList or Dynamic transaction.
|
||||
// pool, specifically, whether it is a Legacy, AccessList, Dynamic or SetCode transaction.
|
||||
func (pool *LegacyPool) Filter(tx *types.Transaction) bool {
|
||||
switch tx.Type() {
|
||||
case types.LegacyTxType, types.AccessListTxType, types.DynamicFeeTxType:
|
||||
case types.LegacyTxType, types.AccessListTxType, types.DynamicFeeTxType, types.SetCodeTxType:
|
||||
return true
|
||||
default:
|
||||
return false
|
||||
|
|
|
|||
Loading…
Reference in a new issue