lntest/node: add method Name to get a node's name
This commit is contained in:
parent
15f812b10f
commit
226b38fed7
@ -249,6 +249,11 @@ func (hn *HarnessNode) DBPath() string {
|
|||||||
return hn.cfg.DBPath()
|
return hn.cfg.DBPath()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Name returns the name of this node set during initialization.
|
||||||
|
func (hn *HarnessNode) Name() string {
|
||||||
|
return hn.cfg.Name
|
||||||
|
}
|
||||||
|
|
||||||
// Start launches a new process running lnd. Additionally, the PID of the
|
// Start launches a new process running lnd. Additionally, the PID of the
|
||||||
// launched process is saved in order to possibly kill the process forcibly
|
// launched process is saved in order to possibly kill the process forcibly
|
||||||
// later.
|
// later.
|
||||||
|
Loading…
Reference in New Issue
Block a user