cmd, eth, node, rpc, xeth: use single-instance services
This commit is contained in:
@@ -489,7 +489,7 @@ func startNode(ctx *cli.Context, stack *node.Node) {
|
||||
|
||||
// Unlock any account specifically requested
|
||||
var ethereum *eth.Ethereum
|
||||
if _, err := stack.SingletonService(ðereum); err != nil {
|
||||
if err := stack.Service(ðereum); err != nil {
|
||||
utils.Fatalf("ethereum service not running: %v", err)
|
||||
}
|
||||
accman := ethereum.AccountManager()
|
||||
|
||||
Reference in New Issue
Block a user