From 226b38fed7c1b7be364aef6a7fa2b30dd24e8eab Mon Sep 17 00:00:00 2001 From: "Johan T. Halseth" Date: Sun, 10 Jun 2018 10:02:59 +0200 Subject: [PATCH] lntest/node: add method Name to get a node's name --- lntest/node.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lntest/node.go b/lntest/node.go index 0d062c8bc..d8ccfa4a1 100644 --- a/lntest/node.go +++ b/lntest/node.go @@ -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.