mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
eth:remove deprecated type "eth.Config"
This commit is contained in:
parent
e31709db65
commit
9c904f3280
2 changed files with 1 additions and 5 deletions
|
|
@ -57,10 +57,6 @@ import (
|
||||||
"github.com/ethereum/go-ethereum/rpc"
|
"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.
|
// Ethereum implements the Ethereum full node service.
|
||||||
type Ethereum struct {
|
type Ethereum struct {
|
||||||
config *ethconfig.Config
|
config *ethconfig.Config
|
||||||
|
|
|
||||||
|
|
@ -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
|
// newWithNode sets up a simulated backend on an existing node. The provided node
|
||||||
// must not be started and will be started by this method.
|
// 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)
|
backend, err := eth.New(stack, conf)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue