diff --git a/core/txpool/blobpool/blobpool.go b/core/txpool/blobpool/blobpool.go index b613d0acc5..11431ec5c5 100644 --- a/core/txpool/blobpool/blobpool.go +++ b/core/txpool/blobpool/blobpool.go @@ -29,6 +29,9 @@ import ( "sync" "time" + "github.com/holiman/billy" + "github.com/holiman/uint256" + "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/consensus/misc/eip1559" "github.com/ethereum/go-ethereum/consensus/misc/eip4844" @@ -41,8 +44,6 @@ import ( "github.com/ethereum/go-ethereum/metrics" "github.com/ethereum/go-ethereum/params" "github.com/ethereum/go-ethereum/rlp" - "github.com/holiman/billy" - "github.com/holiman/uint256" ) const ( @@ -364,9 +365,11 @@ func (p *BlobPool) Init(gasTip uint64, head *types.Header, reserve txpool.Addres // fully synced). state, err := p.chain.StateAt(head.Root) if err != nil { + log.Error("error 1.3") state, err = p.chain.StateAt(types.EmptyRootHash) } if err != nil { + log.Error("error 1.4") return err } p.head, p.state = head, state diff --git a/core/txpool/legacypool/legacypool.go b/core/txpool/legacypool/legacypool.go index a539253fa3..23daefddc1 100644 --- a/core/txpool/legacypool/legacypool.go +++ b/core/txpool/legacypool/legacypool.go @@ -26,6 +26,8 @@ import ( "sync/atomic" "time" + "github.com/holiman/uint256" + "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/prque" "github.com/ethereum/go-ethereum/consensus/misc/eip1559" @@ -37,7 +39,6 @@ import ( "github.com/ethereum/go-ethereum/log" "github.com/ethereum/go-ethereum/metrics" "github.com/ethereum/go-ethereum/params" - "github.com/holiman/uint256" ) const ( @@ -354,9 +355,11 @@ func (pool *LegacyPool) Init(gasTip uint64, head *types.Header, reserve txpool.A // fully synced). statedb, err := pool.chain.StateAt(head.Root) if err != nil { + log.Error("error 1.1") statedb, err = pool.chain.StateAt(types.EmptyRootHash) } if err != nil { + log.Error("error 1.2") return err } pool.currentHead.Store(head)