diff --git a/cmd/lit-af/lit-af.go b/cmd/lit-af/lit-af.go index c87216cf5..03cc1f39b 100644 --- a/cmd/lit-af/lit-af.go +++ b/cmd/lit-af/lit-af.go @@ -159,7 +159,7 @@ func (lc *litAfClient) litAfSetup(conf litAfConfig) error { // initialize a new rpc instance with noise_xk based authentication here adr = fmt.Sprintf("%s@%s:%d", adr, host, port) - err = litrpc.NewOtherRpcClient(adr, key) + lc.RPCClient, err = litrpc.NewLndcRpcClient(adr, key) if err != nil { logging.Fatal(err.Error()) } diff --git a/litrpc/lndcrpcclient.go b/litrpc/lndcrpcclient.go index 1bd5ba073..7a508ee0b 100644 --- a/litrpc/lndcrpcclient.go +++ b/litrpc/lndcrpcclient.go @@ -107,15 +107,6 @@ func NewLocalLndcRpcClientWithHomeDirAndPort(litHomeDir string, port uint32) (*L return NewLndcRpcClient(adr, key) } -func NewOtherRpcClient(address string, key *koblitz.PrivateKey)(error) { - // Dial a connection to the lit node - who, where := lnutil.ParseAdrString(address) - _, err := lndc.Dial(key, where, who, net.Dial) - if err != nil { - return err - } - return nil -} // NewLndcRpcClient creates a new LNDC client using the given private key, which // is arbitrary. It will then connect to the lit node specified in address, and // can then exchange remote control calls with it. In order to succesfully