From a57b3de7f91b5c4816aa5ac3f21e830806dbdf18 Mon Sep 17 00:00:00 2001 From: "Johan T. Halseth" Date: Thu, 11 Jul 2019 13:51:22 +0200 Subject: [PATCH] lntest: compile time check btcd and neutrino BackendCfg interface --- lntest/btcd.go | 4 ++++ lntest/neutrino.go | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/lntest/btcd.go b/lntest/btcd.go index 603bb3af2..3c50e551e 100644 --- a/lntest/btcd.go +++ b/lntest/btcd.go @@ -35,6 +35,10 @@ type BtcdBackendConfig struct { minerAddr string } +// A compile time assertion to ensure BtcdBackendConfig meets the BackendConfig +// interface. +var _ BackendConfig = (*BtcdBackendConfig)(nil) + // GenArgs returns the arguments needed to be passed to LND at startup for // using this node as a chain backend. func (b BtcdBackendConfig) GenArgs() []string { diff --git a/lntest/neutrino.go b/lntest/neutrino.go index a8275fc62..1a5497b95 100644 --- a/lntest/neutrino.go +++ b/lntest/neutrino.go @@ -14,6 +14,10 @@ type NeutrinoBackendConfig struct { minerAddr string } +// A compile time assertion to ensure NeutrinoBackendConfig meets the +// BackendConfig interface. +var _ BackendConfig = (*NeutrinoBackendConfig)(nil) + // GenArgs returns the arguments needed to be passed to LND at startup for // using this node as a chain backend. func (b NeutrinoBackendConfig) GenArgs() []string {