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

This commit is contained in:
Johan T. Halseth 2018-06-10 10:02:59 +02:00
parent 15f812b10f
commit 226b38fed7
No known key found for this signature in database
GPG Key ID: 15BAADA29DA20D26

@ -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.