Skip to content

Fix lost-response retries to reuse the identical payment - #6

Merged
Calgooon merged 4 commits into
mainfrom
lane/helper-retry
Oct 15, 2026
Merged

Calgooon merged 4 commits into
mainfrom
lane/helper-retry

Conversation

@Calgooon

Copy link
Copy Markdown
Owner

A lost paid response previously restarted payment creation for the same quote. The helper now creates one transaction, saves its payment and request before sending, and re-signs the identical header or multipart body for up to three retries after 2, 5, and 10 seconds.

All sends, including manual recovery, are bounded by the quote's five-minute window, with a deadline check after signing. A verified already-claimed refusal stops retries and reports the txid. Exhaustion reports the txid, saved file, and executable retry-payment command. Recovery requires the original wallet identity. Signed success or an accepted refund removes the journal; unresolved payments retain it. Refunds are internalized once, and status-poll refunds still work.

Includes the 1.1.3 version bump, changelog, README refund paragraph, and recovery instructions.

Validation: python3 -m pytest -q passes all 69 tests. Added mocked HTTP and wallet coverage for header and multipart reuse, BRC-104 verification, replay refusal, missing/unsigned responses, connection errors, timeouts, exhaustion and command replay, quote expiry and signing delay, pre-payment failures, identity binding, pending receipts, and refund handling. git diff --check passes. No live paid requests were made.

@Calgooon
Calgooon merged commit 7da61a4 into main Oct 15, 2026
1 check passed
@Calgooon
Calgooon deleted the lane/helper-retry branch October 15, 2026 00:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant