@@ -339,9 +339,9 @@ var _ lnrpc.LightningClient = (*HarnessNode)(nil)
339
339
var _ lnrpc.WalletUnlockerClient = (* HarnessNode )(nil )
340
340
var _ invoicesrpc.InvoicesClient = (* HarnessNode )(nil )
341
341
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 ) {
345
345
346
346
if cfg .BaseDir == "" {
347
347
var err error
@@ -393,7 +393,7 @@ func newNode(t *testing.T, cfg *LitNodeConfig,
393
393
394
394
var remoteNode * node.HarnessNode
395
395
if cfg .RemoteMode {
396
- lndHarness := harness . LNDHarness
396
+ lndHarness := harness
397
397
398
398
remoteNode = lndHarness .NewNode ("bob-custom" , cfg .ExtraArgs )
399
399
tenBTC := btcutil .Amount (10 * btcutil .SatoshiPerBitcoin )
@@ -538,7 +538,7 @@ func renameFile(fromFileName, toFileName string) {
538
538
//
539
539
// This may not clean up properly if an error is returned, so the caller should
540
540
// 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 ,
542
542
wait bool , litArgOpts ... LitArgOption ) error {
543
543
544
544
hn .quit = make (chan struct {})
@@ -1165,8 +1165,8 @@ func (hn *HarnessNode) cleanup() error {
1165
1165
return os .RemoveAll (hn .Cfg .BaseDir )
1166
1166
}
1167
1167
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 {
1170
1170
// Do nothing if the process is not running.
1171
1171
if hn .processExit == nil {
1172
1172
return nil
@@ -1246,7 +1246,7 @@ func (hn *HarnessNode) stop() error {
1246
1246
// shutdown stops the active lnd process and cleans up any temporary directories
1247
1247
// created along the way.
1248
1248
func (hn * HarnessNode ) shutdown () error {
1249
- if err := hn .stop (); err != nil {
1249
+ if err := hn .Stop (); err != nil {
1250
1250
return err
1251
1251
}
1252
1252
if err := hn .cleanup (); err != nil {
0 commit comments