Skip to content

ark_grpc::Client::connect() regressed TLS for HTTPS ASPs in v0.9.1 #232

@Jeezman

Description

@Jeezman

Summary

PR #229 rewrote ark_grpc::Client::connect() to construct the gRPC channel manually via
tonic::transport::Endpoint::from_shared(url).connect() instead of the generated ArkServiceClient::connect(url) static. The manual path does not configure TLS, so consumers hitting an https:// ASP fail.

Confirmed in v0.9.1 (also present on master HEAD). v0.9.0 was unaffected.

Reproduction

Any consumer of ark-grpc v0.9.1 with default features against an HTTPS Ark server:

let mut client = ark_grpc::Client::new("https://your-asp.example.com".into());
client.connect().await?; // fails with `tonic::transport::Error`, kind "transport error"

Reproduced against a locally developed arkade wallet on bitcoin mainnet, hitting (https://arkade.computer). Same wallet code on v0.9.0 connected fine

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions