Skip to content

Commit 28b8f2a

Browse files
committed
itest: pass SkipUnlock to BaseNodeConfig
So that a node can be started without unlocking the wallet.
1 parent 3a2cdbc commit 28b8f2a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

itest/network_harness.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,7 @@ func (n *NetworkHarness) NewNode(t *testing.T, name string, extraArgs []string,
287287

288288
return n.newNode(
289289
t, name, extraArgs, litArgs, false, remoteMode, nil, wait,
290+
false,
290291
)
291292
}
292293

@@ -295,8 +296,8 @@ func (n *NetworkHarness) NewNode(t *testing.T, name string, extraArgs []string,
295296
// can be used immediately. Otherwise, the node will require an additional
296297
// initialization phase where the wallet is either created or restored.
297298
func (n *NetworkHarness) newNode(t *testing.T, name string, extraArgs,
298-
litArgs []string, hasSeed, remoteMode bool, password []byte, wait bool,
299-
opts ...node.Option) (*HarnessNode, error) {
299+
litArgs []string, hasSeed, remoteMode bool, password []byte, wait,
300+
skipUnlock bool, opts ...node.Option) (*HarnessNode, error) {
300301

301302
baseCfg := &node.BaseNodeConfig{
302303
Name: name,
@@ -305,6 +306,7 @@ func (n *NetworkHarness) newNode(t *testing.T, name string, extraArgs,
305306
BackendCfg: n.BackendCfg,
306307
NetParams: n.netParams,
307308
ExtraArgs: extraArgs,
309+
SkipUnlock: skipUnlock,
308310
}
309311
for _, opt := range opts {
310312
opt(baseCfg)

0 commit comments

Comments
 (0)