@@ -339,9 +339,9 @@ var _ lnrpc.LightningClient = (*HarnessNode)(nil)
339339var _ lnrpc.WalletUnlockerClient = (* HarnessNode )(nil )
340340var _ invoicesrpc.InvoicesClient = (* HarnessNode )(nil )
341341
342- // newNode creates a new test lightning node instance from the passed config.
343- func newNode (t * testing.T , cfg * LitNodeConfig ,
344- harness * NetworkHarness ) (* HarnessNode , error ) {
342+ // NewNode creates a new test lightning node instance from the passed config.
343+ func NewNode (t * testing.T , cfg * LitNodeConfig ,
344+ harness * lntest. HarnessTest ) (* HarnessNode , error ) {
345345
346346 if cfg .BaseDir == "" {
347347 var err error
@@ -393,7 +393,7 @@ func newNode(t *testing.T, cfg *LitNodeConfig,
393393
394394 var remoteNode * node.HarnessNode
395395 if cfg .RemoteMode {
396- lndHarness := harness . LNDHarness
396+ lndHarness := harness
397397
398398 remoteNode = lndHarness .NewNode ("bob-custom" , cfg .ExtraArgs )
399399 tenBTC := btcutil .Amount (10 * btcutil .SatoshiPerBitcoin )
@@ -538,7 +538,7 @@ func renameFile(fromFileName, toFileName string) {
538538//
539539// This may not clean up properly if an error is returned, so the caller should
540540// call shutdown() regardless of the return value.
541- func (hn * HarnessNode ) start (litdBinary string , litdError chan <- error ,
541+ func (hn * HarnessNode ) Start (litdBinary string , litdError chan <- error ,
542542 wait bool , litArgOpts ... LitArgOption ) error {
543543
544544 hn .quit = make (chan struct {})
@@ -1165,8 +1165,8 @@ func (hn *HarnessNode) cleanup() error {
11651165 return os .RemoveAll (hn .Cfg .BaseDir )
11661166}
11671167
1168- // Stop attempts to stop the active litd process.
1169- func (hn * HarnessNode ) stop () error {
1168+ // Stop attempts to Stop the active litd process.
1169+ func (hn * HarnessNode ) Stop () error {
11701170 // Do nothing if the process is not running.
11711171 if hn .processExit == nil {
11721172 return nil
@@ -1246,7 +1246,7 @@ func (hn *HarnessNode) stop() error {
12461246// shutdown stops the active lnd process and cleans up any temporary directories
12471247// created along the way.
12481248func (hn * HarnessNode ) shutdown () error {
1249- if err := hn .stop (); err != nil {
1249+ if err := hn .Stop (); err != nil {
12501250 return err
12511251 }
12521252 if err := hn .cleanup (); err != nil {
0 commit comments