diff --git a/lntest/btcd.go b/lntest/btcd.go index 81b22236..7187befd 100644 --- a/lntest/btcd.go +++ b/lntest/btcd.go @@ -59,6 +59,11 @@ func (b BtcdBackendConfig) DisconnectMiner() error { return b.harness.Node.Node(btcjson.NRemove, b.minerAddr, &perm) } +// Name returns the name of the backend type. +func (b BtcdBackendConfig) Name() string { + return "btcd" +} + // NewBackend starts a new rpctest.Harness and returns a BtcdBackendConfig for // that node. miner should be set to the P2P address of the miner to connect // to. diff --git a/lntest/neutrino.go b/lntest/neutrino.go index 5de56825..d127c0b5 100644 --- a/lntest/neutrino.go +++ b/lntest/neutrino.go @@ -29,6 +29,11 @@ func (b NeutrinoBackendConfig) DisconnectMiner() error { return fmt.Errorf("unimplemented") } +// Name returns the name of the backend type. +func (b NeutrinoBackendConfig) Name() string { + return "neutrino" +} + // NewBackend starts and returns a NeutrinoBackendConfig for the node. func NewBackend(miner string) (*NeutrinoBackendConfig, func(), error) { bd := &NeutrinoBackendConfig{ diff --git a/lntest/node.go b/lntest/node.go index 8aa69e69..751d629a 100644 --- a/lntest/node.go +++ b/lntest/node.go @@ -104,6 +104,9 @@ type BackendConfig interface { // DisconnectMiner is called to bitconneeeect the miner. DisconnectMiner() error + + // Name returns the name of the backend type. + Name() string } type nodeConfig struct {