diff --git a/lnwallet/btcwallet/blockchain.go b/lnwallet/btcwallet/blockchain.go index 5618d6e8..4853b1e7 100644 --- a/lnwallet/btcwallet/blockchain.go +++ b/lnwallet/btcwallet/blockchain.go @@ -3,6 +3,7 @@ package btcwallet import ( "encoding/hex" + "github.com/lightningnetwork/lnd/lnwallet" "github.com/roasbeef/btcd/wire" ) @@ -73,3 +74,7 @@ func (b *BtcWallet) GetBlockHash(blockHeight int64) (*wire.ShaHash, error) { return blockHash, nil } + +// A compile time check to ensure that BtcWallet implements the BlockChainIO +// interface. +var _ lnwallet.WalletController = (*BtcWallet)(nil) diff --git a/lnwallet/btcwallet/signer.go b/lnwallet/btcwallet/signer.go index 470208fc..2579386c 100644 --- a/lnwallet/btcwallet/signer.go +++ b/lnwallet/btcwallet/signer.go @@ -199,3 +199,7 @@ func (b *BtcWallet) ComputeInputScript(tx *wire.MsgTx, return inputScript, nil } + +// A compile time check to ensure that BtcWallet implements the Signer +// interface. +var _ lnwallet.Signer = (*BtcWallet)(nil) diff --git a/routing/fibonacci.go b/routing/fibonacci.go new file mode 100644 index 00000000..4fb0f0cb --- /dev/null +++ b/routing/fibonacci.go @@ -0,0 +1 @@ +package routing