lntest/node: add method Name to get a node's name
This commit is contained in:
1 file changed
+5
@@ -249,6 +249,11 @@ func (hn *HarnessNode) DBPath() string {
|
||||
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
|
||||
// launched process is saved in order to possibly kill the process forcibly
|
||||
// later.
|
||||
|
||||
Reference in new issue
Block a user