lntest/node: add method Name to get a node's name

This commit is contained in:
Johan T. Halseth committed 2018-06-10 10:07:00 +02:00
1 parent 15f812b10f
commit 226b38fed7
1 file changed
+5
+5
View File
@@ -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.