Skip to content

Commit

Permalink
remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
Varunram committed Dec 3, 2018
1 parent 4fb437a commit f8a3e05
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion cmd/lit-af/lit-af.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
Expand Down
9 changes: 0 additions & 9 deletions litrpc/lndcrpcclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f8a3e05

Please sign in to comment.