lntest: update test node arguments to account for new invoice.macaroon
This commit is contained in:
1 file changed
+4
@@ -96,6 +96,8 @@ type nodeConfig struct {
|
|||||||
TLSKeyPath string
|
TLSKeyPath string
|
||||||
AdminMacPath string
|
AdminMacPath string
|
||||||
ReadMacPath string
|
ReadMacPath string
|
||||||
|
InvoiceMacPath string
|
||||||
|
|
||||||
P2PPort int
|
P2PPort int
|
||||||
RPCPort int
|
RPCPort int
|
||||||
RESTPort int
|
RESTPort int
|
||||||
@@ -152,6 +154,7 @@ func (cfg nodeConfig) genArgs() []string {
|
|||||||
args = append(args, fmt.Sprintf("--configfile=%v", cfg.DataDir))
|
args = append(args, fmt.Sprintf("--configfile=%v", cfg.DataDir))
|
||||||
args = append(args, fmt.Sprintf("--adminmacaroonpath=%v", cfg.AdminMacPath))
|
args = append(args, fmt.Sprintf("--adminmacaroonpath=%v", cfg.AdminMacPath))
|
||||||
args = append(args, fmt.Sprintf("--readonlymacaroonpath=%v", cfg.ReadMacPath))
|
args = append(args, fmt.Sprintf("--readonlymacaroonpath=%v", cfg.ReadMacPath))
|
||||||
|
args = append(args, fmt.Sprintf("--invoicemacaroonpath=%v", cfg.InvoiceMacPath))
|
||||||
args = append(args, fmt.Sprintf("--externalip=%s", cfg.P2PAddr()))
|
args = append(args, fmt.Sprintf("--externalip=%s", cfg.P2PAddr()))
|
||||||
args = append(args, fmt.Sprintf("--trickledelay=%v", trickleDelay))
|
args = append(args, fmt.Sprintf("--trickledelay=%v", trickleDelay))
|
||||||
|
|
||||||
@@ -211,6 +214,7 @@ func newNode(cfg nodeConfig) (*HarnessNode, error) {
|
|||||||
cfg.TLSKeyPath = filepath.Join(cfg.DataDir, "tls.key")
|
cfg.TLSKeyPath = filepath.Join(cfg.DataDir, "tls.key")
|
||||||
cfg.AdminMacPath = filepath.Join(cfg.DataDir, "admin.macaroon")
|
cfg.AdminMacPath = filepath.Join(cfg.DataDir, "admin.macaroon")
|
||||||
cfg.ReadMacPath = filepath.Join(cfg.DataDir, "readonly.macaroon")
|
cfg.ReadMacPath = filepath.Join(cfg.DataDir, "readonly.macaroon")
|
||||||
|
cfg.InvoiceMacPath = filepath.Join(cfg.DataDir, "invoice.macaroon")
|
||||||
|
|
||||||
cfg.P2PPort, cfg.RPCPort, cfg.RESTPort = generateListeningPorts()
|
cfg.P2PPort, cfg.RPCPort, cfg.RESTPort = generateListeningPorts()
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user