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
View File
@@ -205,6 +205,8 @@ type mockChainIO struct {
bestHeight int32
}
var _ lnwallet.BlockChainIO = (*mockChainIO)(nil)
func (m *mockChainIO) GetBestBlock() (*chainhash.Hash, int32, error) {
return activeNetParams.GenesisHash, m.bestHeight, nil
}