From 8f7496284dfb6a63f971efe5e913f7f2a6bbba75 Mon Sep 17 00:00:00 2001 From: Seungbae Yu Date: Wed, 15 Nov 2023 15:38:58 +0900 Subject: [PATCH] fix(eth): fix typos --- eth/eth.go | 6 +++--- eth/node/node.go | 5 +++-- eth/version/version.go | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/eth/eth.go b/eth/eth.go index 66979c7b80..6feb8e768a 100644 --- a/eth/eth.go +++ b/eth/eth.go @@ -55,9 +55,9 @@ type ( Has(hash common.Hash) bool } - // ExecutionLayerNode is the entrypoint for the evm execution environment. + // NetworkingStack is the entrypoint for the evm execution environment. NetworkingStack interface { - // IsExtRPCEnabled returns true if the networking stack is configured to expose JSON-RPC API. + // ExtRPCEnabled returns true if the networking stack is configured to expose JSON-RPC API. ExtRPCEnabled() bool // RegisterHandler manually registers a new handler into the networking stack. @@ -72,7 +72,7 @@ type ( // Start starts the networking stack. Start() error - // Close stops the networking stack + // Close stops the networking stack. Close() error } diff --git a/eth/node/node.go b/eth/node/node.go index 7b243efedc..edcff8d81d 100644 --- a/eth/node/node.go +++ b/eth/node/node.go @@ -55,12 +55,13 @@ func (n *GethExecutionNode) ExtRPCEnabled() bool { return n.Node.Config().ExtRPCEnabled() } -// ExtRPCEnabled returns whether or not the external RPC service is enabled. +// EventMux retrieves the event multiplexer used by all the network services in +// the current protocol stack. func (n *GethExecutionNode) EventMux() *event.TypeMux { //nolint:staticcheck // still in geth. return n.Node.EventMux() } -// DefaultConfig returns the default configuration for the provider. +// DefaultGethNodeConfig returns the default configuration for the provider. func DefaultGethNodeConfig() *node.Config { nodeCfg := node.DefaultConfig nodeCfg.P2P.NoDiscovery = true diff --git a/eth/version/version.go b/eth/version/version.go index 597422923d..32cc9a28e7 100644 --- a/eth/version/version.go +++ b/eth/version/version.go @@ -73,7 +73,7 @@ func ClientName(clientIdentifier string) string { ) } -// runtimeInfo returns build and platform information about the current binary. +// Info returns build and platform information about the current binary. // // If the package that is currently executing is a prefixed by our go-ethereum // module path, it will print out commit and date VCS information. Otherwise,