Skip to content

e2e: ClientFixture::fetch retry replays voucher nonce 0 after a mid-stream failure #1062

Closed

Description

@yigitdot

Surfaced by the multi-agent review of #1053 (#1028).

crates/e2e/src/client.rs ClientFixture::fetch retries stream_fetch in a loop but reuses a single ChannelContext with prior_nonce = U256::ZERO. If an attempt is accepted by the node (channel already observed) and then fails mid-stream after a voucher is consumed, subsequent retries replay from nonce 0 and are rejected until the deadline expires.

Narrow today (most pre-observation failures consume nothing, and the smoke test is happy-path), but a sharp edge once these fixtures back less-happy-path journeys. Fix: advance prior_nonce/prior_bytes/prior_amount across retries, or re-open a fresh channel per attempt. Deferred from #1053.

Metadata

Metadata

Assignees

Labels

prio:medium

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions