lntest: compile time check btcd and neutrino BackendCfg interface
This commit is contained in:
parent
45d41dce17
commit
a57b3de7f9
@ -35,6 +35,10 @@ type BtcdBackendConfig struct {
|
|||||||
minerAddr string
|
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
|
// GenArgs returns the arguments needed to be passed to LND at startup for
|
||||||
// using this node as a chain backend.
|
// using this node as a chain backend.
|
||||||
func (b BtcdBackendConfig) GenArgs() []string {
|
func (b BtcdBackendConfig) GenArgs() []string {
|
||||||
|
@ -14,6 +14,10 @@ type NeutrinoBackendConfig struct {
|
|||||||
minerAddr string
|
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
|
// GenArgs returns the arguments needed to be passed to LND at startup for
|
||||||
// using this node as a chain backend.
|
// using this node as a chain backend.
|
||||||
func (b NeutrinoBackendConfig) GenArgs() []string {
|
func (b NeutrinoBackendConfig) GenArgs() []string {
|
||||||
|
Loading…
Reference in New Issue
Block a user