mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 23:26:44 +00:00
fix: rename PortalHistoryConfig to Config
This commit is contained in:
parent
0b6714dea0
commit
37b4382947
1 changed files with 4 additions and 4 deletions
|
|
@ -21,7 +21,7 @@ import (
|
|||
"github.com/urfave/cli/v2"
|
||||
)
|
||||
|
||||
type PortalHistoryConfig struct {
|
||||
type Config struct {
|
||||
Protocol *discover.PortalProtocolConfig
|
||||
PrivateKey *ecdsa.PrivateKey
|
||||
RpcAddr string
|
||||
|
|
@ -101,8 +101,8 @@ func shisui(ctx *cli.Context) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
func getPortalHistoryConfig(ctx *cli.Context) (*PortalHistoryConfig, error) {
|
||||
config := &PortalHistoryConfig{
|
||||
func getPortalHistoryConfig(ctx *cli.Context) (*Config, error) {
|
||||
config := &Config{
|
||||
Protocol: discover.DefaultPortalProtocolConfig(),
|
||||
}
|
||||
err := setPrivateKey(ctx, config)
|
||||
|
|
@ -145,7 +145,7 @@ func getPortalHistoryConfig(ctx *cli.Context) (*PortalHistoryConfig, error) {
|
|||
return config, nil
|
||||
}
|
||||
|
||||
func setPrivateKey(ctx *cli.Context, config *PortalHistoryConfig) error {
|
||||
func setPrivateKey(ctx *cli.Context, config *Config) error {
|
||||
var privateKey *ecdsa.PrivateKey
|
||||
var err error
|
||||
if ctx.IsSet(utils.PortalPrivateKeyFlag.Name) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue