eth:remove deprecated type "eth.Config"

This commit is contained in:
undefinedor 2024-03-09 22:55:41 +08:00
parent e31709db65
commit 9c904f3280
2 changed files with 1 additions and 5 deletions

View file

@ -57,10 +57,6 @@ import (
"github.com/ethereum/go-ethereum/rpc"
)
// Config contains the configuration options of the ETH protocol.
// Deprecated: use ethconfig.Config instead.
type Config = ethconfig.Config
// Ethereum implements the Ethereum full node service.
type Ethereum struct {
config *ethconfig.Config

View file

@ -104,7 +104,7 @@ func NewBackend(alloc types.GenesisAlloc, options ...func(nodeConf *node.Config,
// newWithNode sets up a simulated backend on an existing node. The provided node
// must not be started and will be started by this method.
func newWithNode(stack *node.Node, conf *eth.Config, blockPeriod uint64) (*Backend, error) {
func newWithNode(stack *node.Node, conf *ethconfig.Config, blockPeriod uint64) (*Backend, error) {
backend, err := eth.New(stack, conf)
if err != nil {
return nil, err