Skip to content

docs: document the local LND receipt journey - #1913

Merged
piotr-iohk merged 4 commits into
masterfrom
codex/320-receipt-journey-docs
Nov 13, 2026
Merged

piotr-iohk merged 4 commits into
masterfrom
codex/320-receipt-journey-docs

Conversation

@piotr-iohk

@piotr-iohk piotr-iohk commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #1809

This PR documents the local LND fixture for the Android receipt-to-send journey and records the platform difference in the root journey guide.

Description

  • Links the capability to a pinned Send2 fixture with startup and wallet funding steps, including the emulator host and port for the manual LND connection.
  • Separates the Android channel-cache journey from the shared over-limit behavior that Send2 checks on both platforms.
  • Preserves the single-key rejection and retained-field assertions.

QA Notes

Setup

N/A for this documentation change. The updated guide records the fixture setup for future journey runs.

Journeys

N/A

Manual Tests

N/A

Automated Checks

N/A

Evidence

git diff --check and XML parsing passed. Independent review checked the pinned fixture commands, ran their argument flow against stubbed Docker, and verified the links to the earlier Send2 and Android device results.

Gaps

At f592850, the documented 10.0.2.2:9735 route connected from the Android 13 emulator without port reversal. The pinned helper opened a private 100,000-sat inbound channel, mined six blocks, and LND reported it active with zero remote balance. This smoke test used the 3798a007 app APK and a dedicated LND 0.18.0-beta peer on local regtest. The optional in-app channel screen check timed out at drawer navigation. The full receipt-to-send journey was not repeated.

Models used

  • Planning/scoping: GPT-6.1
  • Implementation: GPT-6.1
  • Review: GPT-6.1, three passes

@piotr-iohk piotr-iohk added this to the 3.2.0 milestone Nov 13, 2026 — with ChatGPT Codex Connector
@greptile-apps

greptile-apps Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] This documentation-only PR appears safe to merge.

Summary

Documents the local LND setup for the Android receipt-to-send journey.

  • The journey guide shows how to prepare the local LND receipt-to-send check.

No actionable new issues were found. The app’s manual connection flow was checked in source; the route was not replayed on a device.

Reviews (2) · Last reviewed commit: "docs: specify the emulator LND endpoint" · Reviewed by Greptile

@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Regtest APK

Built from f592850 (run).

Download bitkit-dev-debug universal APK (expires in 30 days).

@talosmachina talosmachina left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No findings. Documents how to stand up the pinned local LND fixture for send-spending-after-receive.xml and records it as an Android-only journey in the cross-platform table. Reviewed 02687fb, light tier (docs only, no build).

What I checked, and 5 candidates I ruled out

Read in full: journeys/README.md, journeys/amount-limits/README.md, and at the pinned bitkit-e2e-tests@e560ece docker/docker-compose.yml, docker/bitcoin-cli, test/specs/send.e2e.ts
CI: build-and-test green; lint and ui-tests still running at review time; neither reads Markdown

Ruled out

  • Version pins: the pinned compose file runs btcpayserver/bitcoin:26.0, getumbrel/electrs:v0.10.2 and polarlightning/lnd:0.18.0-beta, as the text says.
  • Helper commands: fund, send ... -m 1, openchannel <node_id> [amount], getlninvoice and payinvoice <invoice> [amount] all exist in the pinned bitcoin-cli; openchannel checks the peer, funds LND when its balance is short, opens with --private and mines 6 blocks, matching "funds LND if needed and mines the channel funding transaction".
  • Grep tag: '@send_2 ' matches the title @send_2 @ios_gate - Can receive funds... at send.e2e.ts:70.
  • Linked run: 42573552198 is a successful e2e.yml run, whose LND bind-mount and macaroon chmod steps are the startup steps the text points to.
  • Anchor: #spending-immediately-after-a-lightning-receipt resolves to the existing heading at amount-limits/README.md:55.

Merge confidence: 5/5, docs only, a test would not apply.

@ovitrif ovitrif removed this from the 3.2.0 milestone Nov 13, 2026
@piotr-iohk piotr-iohk added this to the 3.2.0 milestone Nov 13, 2026
@ovitrif ovitrif removed this from the 3.2.0 milestone Nov 13, 2026
@piotr-iohk
piotr-iohk requested review from a team, ben-kaufman and ovitrif and removed request for a team November 13, 2026 14:23
@piotr-iohk
piotr-iohk enabled auto-merge November 13, 2026 15:34

@piotr-iohk piotr-iohk left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

QA review

Scope: Reviewed the full PR diff against its merge base, at 02687fb5.

1 actionable finding — resolve or provide an evidence-backed rebuttal.

The pinned Send2 commands, image versions, @send_2 grep, CI startup steps, and Android-only parity row match the fixture and the iOS tree that were checked. The new manual connection step does not name a host the emulator can reach, so that recipe cannot open the channel it tells the reader to open.

Validation: git diff --check was clean and send-spending-after-receive.xml parsed. At bitkit-e2e-tests e560ece, compose pins Bitcoin 26.0, electrs 0.10.2, and LND 0.18.0-beta. A stubbed bitcoin-cli accepted fund, send 0.001 <address> -m 1, connected openchannel <id> 100000 (--private, then 6 blocks), amountless getlninvoice, and payinvoice <invoice> 10000. Send2 job 129017856857 checks out app b5ff8114 and that e2e commit, and its regtest steps make the LND directory writable and the admin macaroon readable. iOS master b35611a has no send-spending-after-receive.xml. Shared Send2 (@send_2 @ios_gate) rejects 10 001 through enterGateAmount, which waits for SendAmountExceededToast and keeps the accepted prefix. Device testing: not performed in this review.

Suggested additional test cases

  • Android emulator, E2E=true E2E_BACKEND=local dev build, pinned e2e Docker at e560ece. Follow only the new manual steps and connect with the address openchannel prints (<lnd-pubkey>@0.0.0.0:9735) without an extra port forward. Expected: the peer does not connect and no channel opens. Repeat with adb reverse tcp:9735 tcp:9735, or with host 10.0.2.2 and port 9735. Expected: openchannel <bitkit-node-id> 100000 opens a private channel and it becomes active.

Findings

  • [LOW] Give the manual LND setup a host the emulator can reach — inline at journeys/amount-limits/README.md:76.

Reviewer model: grok-4.7
Reasoning effort: high

Comment thread journeys/amount-limits/README.md Resolved
@piotr-iohk
piotr-iohk disabled auto-merge November 13, 2026 16:05

@ovi-reviewer ovi-reviewer Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: ✅ Approve — documentation only.

Findings: None.

QA for f592850:

Check: Documentation integrity ✅ Whitespace validation, the capability anchor and XML parsing pass.

git diff --check passed. The receipt journey XML is unchanged from the base, including the single rejected key and retained-prefix assertions.

Check: Pinned local LND recipe ✅ Commands, versions and the manual connection route match source.

Checked the fixture at e560ece: image versions, build flags, runner grep, funding, private-channel opening, amountless invoice and 10,000-sat payment. Android connects to the entered 10.0.2.2:9735 endpoint before requesting channel funding, allowing the documented return to Home.

Check: Execution evidence and platform scope ✅ Historical reports retain their original revisions and coverage.

The pinned Send2 job succeeded with app b5ff8114 and E2E e560ece. The separate device review reports J1 at b5ff8114. The endpoint smoke report used the base APK and verified connection/channel activation; its channel-screen check timed out, and it did not repeat the full journey.

Device testing: N/A. This PR changes two guides, lists no runtime QA cases, and changes neither app behavior nor journey XML. No build or device run was performed in this review.

Twin: no iOS PR is needed for this Android fixture documentation. The Android-only cache regression is distinguished from shared Send2, which includes iOS over-limit assertions.

Coverage: full 3798a00..f592850, both changed guides and their referenced fixture, app connection code and execution evidence. No device case was driven for this documentation-only change.


Reviewed by gpt-6.1-sol-high

@ovitrif ovitrif left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utAck

@piotr-iohk
piotr-iohk merged commit edcbfcd into master Nov 13, 2026
19 checks passed
@piotr-iohk
piotr-iohk deleted the codex/320-receipt-journey-docs branch November 13, 2026 16:25
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.

docs: document receipt-to-send journey parity and local LND capability

3 participants