Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: sczembor <[email protected]>
Signed-off-by: Vu Vo <[email protected]>
  • Loading branch information
vuvoth and sczembor authored Jan 14, 2025
1 parent 40b705b commit a141318
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion btclightclient/btc_header_bytes.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func BlockHeaderFromHex(hexStr string) (wire.BlockHeader, error) {
var header wire.BlockHeader

if len(hexStr) != BTCHeaderSize*2 {
return header, errors.New("invalid header size, must have 80 bytes")
return header, errors.New("invalid header size, must be 80 bytes")
}

data, err := hex.DecodeString(hexStr)
Expand Down

0 comments on commit a141318

Please sign in to comment.