lntest: FetchNodeInfo/initLightningClient docs update

This commit is contained in:
Moshe Shababo 2019-01-27 17:05:30 +02:00
parent 6a78141a2d
commit 8ed4e887be

@ -434,6 +434,8 @@ func (hn *HarnessNode) Init(ctx context.Context,
// initLightningClient constructs the grpc LightningClient from the given client
// connection and subscribes the harness node to graph topology updates.
// This method also spawns a lightning network watcher for this node,
// which watches for topology changes.
func (hn *HarnessNode) initLightningClient(conn *grpc.ClientConn) error {
// Construct the LightningClient that will allow us to use the
// HarnessNode directly for normal rpc operations.
@ -453,9 +455,7 @@ func (hn *HarnessNode) initLightningClient(conn *grpc.ClientConn) error {
return nil
}
// FetchNodeInfo queries an unlocked node to retrieve its public key. This
// method also spawns a lightning network watcher for this node, which watches
// for topology changes.
// FetchNodeInfo queries an unlocked node to retrieve its public key.
func (hn *HarnessNode) FetchNodeInfo() error {
// Obtain the lnid of this node for quick identification purposes.
ctxb := context.Background()