Added error return value in localChain
@@ -23,7 +23,8 @@ func Connect() (btc.Handle, error) {
}
// GetHeaderByHeight returns the block header for the given block height.
-func (lc *localChain) GetHeaderByHeight(height *big.Int) *btc.Header {
+func (lc *localChain) GetHeaderByHeight(height *big.Int) (*btc.Header, error) {
// TODO: implementation
- return nil
+ return nil, nil
}
+
