lnwallet/btcwallet: add compile time check for BlockChainIO interface

This commit is contained in:
Johan T. Halseth committed 2019-05-09 14:44:41 +02:00
1 parent c4415f0400
commit beb5d14ed9
4 files changed
+9 -1

No files matched your search

+2 -1
View File
@@ -67,8 +67,9 @@ type BtcWallet struct {
}
// A compile time check to ensure that BtcWallet implements the
// WalletController interface.
// WalletController and BlockChainIO interfaces.
var _ lnwallet.WalletController = (*BtcWallet)(nil)
var _ lnwallet.BlockChainIO = (*BtcWallet)(nil)
// New returns a new fully initialized instance of BtcWallet given a valid
// configuration struct.