Skip to content

Commit

Permalink
Merge pull request #445 from bitcoin-sv/fix/beef-error-handling
Browse files Browse the repository at this point in the history
fix(ARCO-24): error handling for merkle root verification
  • Loading branch information
boecklim authored Jun 7, 2024
2 parents 4f4662d + c9e0679 commit 991649f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/blocktx/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,11 @@ func (btc *Client) VerifyMerkleRoots(ctx context.Context, merkleRootVerification
}

resp, err := btc.client.VerifyMerkleRoots(ctx, &blocktx_api.MerkleRootsVerificationRequest{MerkleRoots: merkleRoots})
if err != nil {
return nil, err
}

return resp.UnverifiedBlockHeights, err
return resp.UnverifiedBlockHeights, nil
}

func DialGRPC(address string, prometheusEndpoint string, grpcMessageSize int) (*grpc.ClientConn, error) {
Expand Down

0 comments on commit 991649f

Please sign in to comment.