mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-15 16:33:47 +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"
|
"github.com/urfave/cli/v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
type PortalHistoryConfig struct {
|
type Config struct {
|
||||||
Protocol *discover.PortalProtocolConfig
|
Protocol *discover.PortalProtocolConfig
|
||||||
PrivateKey *ecdsa.PrivateKey
|
PrivateKey *ecdsa.PrivateKey
|
||||||
RpcAddr string
|
RpcAddr string
|
||||||
|
|
@ -101,8 +101,8 @@ func shisui(ctx *cli.Context) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func getPortalHistoryConfig(ctx *cli.Context) (*PortalHistoryConfig, error) {
|
func getPortalHistoryConfig(ctx *cli.Context) (*Config, error) {
|
||||||
config := &PortalHistoryConfig{
|
config := &Config{
|
||||||
Protocol: discover.DefaultPortalProtocolConfig(),
|
Protocol: discover.DefaultPortalProtocolConfig(),
|
||||||
}
|
}
|
||||||
err := setPrivateKey(ctx, config)
|
err := setPrivateKey(ctx, config)
|
||||||
|
|
@ -145,7 +145,7 @@ func getPortalHistoryConfig(ctx *cli.Context) (*PortalHistoryConfig, error) {
|
||||||
return config, nil
|
return config, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func setPrivateKey(ctx *cli.Context, config *PortalHistoryConfig) error {
|
func setPrivateKey(ctx *cli.Context, config *Config) error {
|
||||||
var privateKey *ecdsa.PrivateKey
|
var privateKey *ecdsa.PrivateKey
|
||||||
var err error
|
var err error
|
||||||
if ctx.IsSet(utils.PortalPrivateKeyFlag.Name) {
|
if ctx.IsSet(utils.PortalPrivateKeyFlag.Name) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue