File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ import (
2121 "github.com/urfave/cli/v2"
2222)
2323
24- type PortalHistoryConfig struct {
24+ type Config struct {
2525 Protocol * discover.PortalProtocolConfig
2626 PrivateKey * ecdsa.PrivateKey
2727 RpcAddr string
@@ -101,8 +101,8 @@ func shisui(ctx *cli.Context) error {
101101 return nil
102102}
103103
104- func getPortalHistoryConfig (ctx * cli.Context ) (* PortalHistoryConfig , error ) {
105- config := & PortalHistoryConfig {
104+ func getPortalHistoryConfig (ctx * cli.Context ) (* Config , error ) {
105+ config := & Config {
106106 Protocol : discover .DefaultPortalProtocolConfig (),
107107 }
108108 err := setPrivateKey (ctx , config )
@@ -145,7 +145,7 @@ func getPortalHistoryConfig(ctx *cli.Context) (*PortalHistoryConfig, error) {
145145 return config , nil
146146}
147147
148- func setPrivateKey (ctx * cli.Context , config * PortalHistoryConfig ) error {
148+ func setPrivateKey (ctx * cli.Context , config * Config ) error {
149149 var privateKey * ecdsa.PrivateKey
150150 var err error
151151 if ctx .IsSet (utils .PortalPrivateKeyFlag .Name ) {
You can’t perform that action at this time.
0 commit comments