The BlockShaMissing error is not very descriptive when printed, due to the missing block sha not being included in the error string. To fix this, BlockShaMissing should be changed to a type rather than just a variable. For example:
type BlockShaMissing btcwire.ShaHash
func (e *BlockShaMissing) Error() string {
return "block " + (*btcwire.ShaHash)(e).String() + " missing"
}
The BlockShaMissing error is not very descriptive when printed, due to the missing block sha not being included in the error string. To fix this, BlockShaMissing should be changed to a type rather than just a variable. For example: