mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-10-14 00:59:33 +00:00
[NOD-1373] Make kaspactl use the default port for the relevant network if it's not provided. (#927)
This commit is contained in:
parent
e66de86a82
commit
1186cad9ca
@ -12,7 +12,11 @@ func main() {
|
||||
printErrorAndExit(fmt.Sprintf("error parsing command-line arguments: %s", err))
|
||||
}
|
||||
|
||||
client, err := grpcclient.Connect(cfg.RPCServer)
|
||||
rpcAddress, err := cfg.NetParams().NormalizeRPCServerAddress(cfg.RPCServer)
|
||||
if err != nil {
|
||||
printErrorAndExit(fmt.Sprintf("error parsing RPC server address: %s", err))
|
||||
}
|
||||
client, err := grpcclient.Connect(rpcAddress)
|
||||
if err != nil {
|
||||
printErrorAndExit(fmt.Sprintf("error connecting to the RPC server: %s", err))
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user