From 9c904f3280fd5c2ed57935f0e944370a36124de7 Mon Sep 17 00:00:00 2001 From: undefinedor Date: Sat, 9 Mar 2024 22:55:41 +0800 Subject: [PATCH] eth:remove deprecated type "eth.Config" --- eth/backend.go | 4 ---- ethclient/simulated/backend.go | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/eth/backend.go b/eth/backend.go index 81d84028a5..ba3381fce7 100644 --- a/eth/backend.go +++ b/eth/backend.go @@ -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 diff --git a/ethclient/simulated/backend.go b/ethclient/simulated/backend.go index 0c2a0b453c..6602e9e484 100644 --- a/ethclient/simulated/backend.go +++ b/ethclient/simulated/backend.go @@ -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