Merge pull request #2547 from moshababo/master

[trivial] lntest: FetchNodeInfo/initLightningClient docs update
This commit is contained in:
Olaoluwa Osuntokun 2019-01-28 12:37:15 -08:00 committed by GitHub
commit ea6f7ccf2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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()