mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 01:43:47 +00:00
enable eip-7702
This commit is contained in:
parent
864e717b56
commit
de5a3f90bd
1 changed files with 2 additions and 1 deletions
|
|
@ -279,7 +279,7 @@ func New(config Config, chain BlockChain) *LegacyPool {
|
||||||
// pool, specifically, whether it is a Legacy, AccessList or Dynamic transaction.
|
// pool, specifically, whether it is a Legacy, AccessList or Dynamic transaction.
|
||||||
func (pool *LegacyPool) Filter(tx *types.Transaction) bool {
|
func (pool *LegacyPool) Filter(tx *types.Transaction) bool {
|
||||||
switch tx.Type() {
|
switch tx.Type() {
|
||||||
case types.LegacyTxType, types.AccessListTxType, types.DynamicFeeTxType:
|
case types.LegacyTxType, types.AccessListTxType, types.DynamicFeeTxType, types.SetCodeTxType:
|
||||||
return true
|
return true
|
||||||
default:
|
default:
|
||||||
return false
|
return false
|
||||||
|
|
@ -611,6 +611,7 @@ func (pool *LegacyPool) validateTxBasics(tx *types.Transaction, local bool) erro
|
||||||
Accept: 0 |
|
Accept: 0 |
|
||||||
1<<types.LegacyTxType |
|
1<<types.LegacyTxType |
|
||||||
1<<types.AccessListTxType |
|
1<<types.AccessListTxType |
|
||||||
|
1<<types.SetCodeTxType |
|
||||||
1<<types.DynamicFeeTxType,
|
1<<types.DynamicFeeTxType,
|
||||||
MaxSize: txMaxSize,
|
MaxSize: txMaxSize,
|
||||||
MinTip: pool.gasTip.Load().ToBig(),
|
MinTip: pool.gasTip.Load().ToBig(),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue