@@ -49,7 +49,7 @@ type NetworkHarness struct {
4949 LNDHarness * lntest.HarnessTest
5050
5151 // server is an instance of the local Loop/Pool mock server.
52- server * serverHarness
52+ server * ServerHarness
5353
5454 // BackendCfg houses the information necessary to use a node as LND
5555 // chain backend, such as rpc configuration, P2P information etc.
@@ -130,8 +130,8 @@ func (n *NetworkHarness) SetUp(t *testing.T,
130130 mockServerAddr := fmt .Sprintf (
131131 node .ListenerFormat , node .NextAvailablePort (),
132132 )
133- n .server = newServerHarness (mockServerAddr )
134- err := n .server .start ()
133+ n .server = NewServerHarness (mockServerAddr )
134+ err := n .server .Start ()
135135 require .NoError (t , err )
136136
137137 // Start a mock autopilot server.
@@ -273,10 +273,10 @@ func (n *NetworkHarness) NewNode(t *testing.T, name string, extraArgs []string,
273273 remoteMode bool , wait bool ) (* HarnessNode , error ) {
274274
275275 litArgs := []string {
276- fmt .Sprintf ("--loop.server.host=%s" , n .server .serverHost ),
277- fmt .Sprintf ("--loop.server.tlspath=%s" , n .server .certFile ),
278- fmt .Sprintf ("--pool.auctionserver=%s" , n .server .serverHost ),
279- fmt .Sprintf ("--pool.tlspathauctserver=%s" , n .server .certFile ),
276+ fmt .Sprintf ("--loop.server.host=%s" , n .server .ServerHost ),
277+ fmt .Sprintf ("--loop.server.tlspath=%s" , n .server .CertFile ),
278+ fmt .Sprintf ("--pool.auctionserver=%s" , n .server .ServerHost ),
279+ fmt .Sprintf ("--pool.tlspathauctserver=%s" , n .server .CertFile ),
280280 "--autopilot.insecure" ,
281281 fmt .Sprintf (
282282 "--autopilot.address=localhost:%d" ,
@@ -315,7 +315,7 @@ func (n *NetworkHarness) newNode(t *testing.T, name string, extraArgs,
315315 RemoteMode : remoteMode ,
316316 }
317317
318- node , err := newNode (t , cfg , n )
318+ node , err := NewNode (t , cfg , n . LNDHarness )
319319 if err != nil {
320320 return nil , err
321321 }
@@ -326,7 +326,7 @@ func (n *NetworkHarness) newNode(t *testing.T, name string, extraArgs,
326326 n .activeNodes [node .NodeID ] = node
327327 n .mtx .Unlock ()
328328
329- err = node .start (n .litdBinary , n .lndErrorChan , wait )
329+ err = node .Start (n .litdBinary , n .lndErrorChan , wait )
330330 if err != nil {
331331 return nil , err
332332 }
@@ -649,7 +649,7 @@ func (n *NetworkHarness) RestartNode(node *HarnessNode, callback func() error,
649649func (n * NetworkHarness ) RestartNodeNoUnlock (node * HarnessNode ,
650650 callback func () error , wait bool , litArgOpts ... LitArgOption ) error {
651651
652- if err := node .stop (); err != nil {
652+ if err := node .Stop (); err != nil {
653653 return err
654654 }
655655
@@ -659,18 +659,18 @@ func (n *NetworkHarness) RestartNodeNoUnlock(node *HarnessNode,
659659 }
660660 }
661661
662- return node .start (n .litdBinary , n .lndErrorChan , wait , litArgOpts ... )
662+ return node .Start (n .litdBinary , n .lndErrorChan , wait , litArgOpts ... )
663663}
664664
665665// SuspendNode stops the given node and returns a callback that can be used to
666666// start it again.
667667func (n * NetworkHarness ) SuspendNode (node * HarnessNode ) (func () error , error ) {
668- if err := node .stop (); err != nil {
668+ if err := node .Stop (); err != nil {
669669 return nil , err
670670 }
671671
672672 restart := func () error {
673- return node .start (n .litdBinary , n .lndErrorChan , true )
673+ return node .Start (n .litdBinary , n .lndErrorChan , true )
674674 }
675675
676676 return restart , nil
@@ -701,7 +701,7 @@ func (n *NetworkHarness) KillNode(node *HarnessNode) error {
701701// This can be used to temporarily bring a node down during a test, to be later
702702// started up again.
703703func (n * NetworkHarness ) StopNode (node * HarnessNode ) error {
704- return node .stop ()
704+ return node .Stop ()
705705}
706706
707707// OpenChannel attempts to open a channel between srcNode and destNode with the
0 commit comments