|
|
|
@ -33,7 +33,6 @@ import ( |
|
|
|
|
"github.com/ethereum/go-ethereum/eth/downloader" |
|
|
|
|
"github.com/ethereum/go-ethereum/ethclient" |
|
|
|
|
"github.com/ethereum/go-ethereum/internal/debug" |
|
|
|
|
"github.com/ethereum/go-ethereum/internal/ethapi" |
|
|
|
|
"github.com/ethereum/go-ethereum/internal/flags" |
|
|
|
|
"github.com/ethereum/go-ethereum/log" |
|
|
|
|
"github.com/ethereum/go-ethereum/metrics" |
|
|
|
@ -348,10 +347,10 @@ func geth(ctx *cli.Context) error { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
prepare(ctx) |
|
|
|
|
stack, backend := makeFullNode(ctx) |
|
|
|
|
stack := makeFullNode(ctx) |
|
|
|
|
defer stack.Close() |
|
|
|
|
|
|
|
|
|
startNode(ctx, stack, backend, false) |
|
|
|
|
startNode(ctx, stack, false) |
|
|
|
|
stack.Wait() |
|
|
|
|
return nil |
|
|
|
|
} |
|
|
|
@ -359,7 +358,7 @@ func geth(ctx *cli.Context) error { |
|
|
|
|
// startNode boots up the system node and all registered protocols, after which
|
|
|
|
|
// it unlocks any requested accounts, and starts the RPC/IPC interfaces and the
|
|
|
|
|
// miner.
|
|
|
|
|
func startNode(ctx *cli.Context, stack *node.Node, backend ethapi.Backend, isConsole bool) { |
|
|
|
|
func startNode(ctx *cli.Context, stack *node.Node, isConsole bool) { |
|
|
|
|
debug.Memsize.Add("node", stack) |
|
|
|
|
|
|
|
|
|
// Start up the node itself
|
|
|
|
|