From f2ca4e1ea0dbce0db27c9016365cb3612c05f3b1 Mon Sep 17 00:00:00 2001 From: Turtle Date: Sat, 25 May 2019 00:54:55 -0400 Subject: [PATCH] lntest: add getters for TLSCertPath and TLSKeyPath fields --- lntest/node.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lntest/node.go b/lntest/node.go index 79ec220f6..9205658a8 100644 --- a/lntest/node.go +++ b/lntest/node.go @@ -305,6 +305,16 @@ func (hn *HarnessNode) Name() string { return hn.cfg.Name } +// TLSCertStr returns the path where the TLS certificate is stored. +func (hn *HarnessNode) TLSCertStr() string { + return hn.cfg.TLSCertPath +} + +// TLSKeyStr returns the path where the TLS key is stored. +func (hn *HarnessNode) TLSKeyStr() string { + return hn.cfg.TLSKeyPath +} + // ChanBackupPath returns the fielpath to the on-disk channels.backup file for // this node. func (hn *HarnessNode) ChanBackupPath() string {