File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,12 +20,12 @@ type Chain interface {
2020 // rejected eventually.
2121 BroadcastTransaction (transaction * Transaction ) error
2222
23- // GetLatestBlockNumber gets the height of the latest block (tip). If the
23+ // GetLatestBlockHeight gets the height of the latest block (tip). If the
2424 // latest block was not determined, this function returns an error.
25- GetLatestBlockNumber () (uint , error )
25+ GetLatestBlockHeight () (uint , error )
2626
27- // GetBlockHeader gets the block header for the given block number . If the
28- // block with the given number was not found on the chain, this function
27+ // GetBlockHeader gets the block header for the given block height . If the
28+ // block with the given height was not found on the chain, this function
2929 // returns an error.
30- GetBlockHeader (blockNumber uint ) (* BlockHeader , error )
30+ GetBlockHeader (blockHeight uint ) (* BlockHeader , error )
3131}
Original file line number Diff line number Diff line change @@ -27,13 +27,13 @@ func (c *Client) BroadcastTransaction(
2727 panic ("not implemented" )
2828}
2929
30- func (c * Client ) GetLatestBlockNumber () (uint , error ) {
30+ func (c * Client ) GetLatestBlockHeight () (uint , error ) {
3131 // TODO: Implementation.
3232 panic ("not implemented" )
3333}
3434
3535func (c * Client ) GetBlockHeader (
36- blockNumber uint ,
36+ blockHeight uint ,
3737) (* bitcoin.BlockHeader , error ) {
3838 // TODO: Implementation.
3939 panic ("not implemented" )
You can’t perform that action at this time.
0 commit comments