Skip to content

Commit

Permalink
Document GetCoinbaseTxHash function
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasz-zimnoch committed Jan 15, 2024
1 parent 41f6ab3 commit cb79db1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/bitcoin/electrum/electrum.go
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,8 @@ func (c *Connection) getConfirmedScriptHistory(
return confirmedItems, nil
}

// GetCoinbaseTxHash gets the hash of the coinbase transaction for the given
// block height.
func (c *Connection) GetCoinbaseTxHash(blockHeight uint) (bitcoin.Hash, error) {
txHashString, err := requestWithRetry(
c,
Expand Down

0 comments on commit cb79db1

Please sign in to comment.