lnwallet/btcwallet: add compile time check for BlockChainIO interface
This commit is contained in:
4 files changed
+9
-1
No files matched your search
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user