Repository navigation
docs: document the local LND receipt journey - #1913
Conversation
[Low impact] This documentation-only PR appears safe to merge. SummaryDocuments the local LND setup for the Android receipt-to-send journey.
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 |
Regtest APKDownload bitkit-dev-debug universal APK (expires in 30 days). |
talosmachina
left a comment
There was a problem hiding this comment.
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.2andpolarlightning/lnd:0.18.0-beta, as the text says. - Helper commands:
fund,send ... -m 1,openchannel <node_id> [amount],getlninvoiceandpayinvoice <invoice> [amount]all exist in the pinnedbitcoin-cli;openchannelchecks the peer, funds LND when its balance is short, opens with--privateand 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...atsend.e2e.ts:70. - Linked run: 42573552198 is a successful
e2e.ymlrun, whose LND bind-mount and macaroonchmodsteps are the startup steps the text points to. - Anchor:
#spending-immediately-after-a-lightning-receiptresolves to the existing heading atamount-limits/README.md:55.
Merge confidence: 5/5, docs only, a test would not apply.
piotr-iohk
left a comment
There was a problem hiding this comment.
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=localdev build, pinned e2e Docker ate560ece. Follow only the new manual steps and connect with the addressopenchannelprints (<lnd-pubkey>@0.0.0.0:9735) without an extra port forward. Expected: the peer does not connect and no channel opens. Repeat withadb reverse tcp:9735 tcp:9735, or with host10.0.2.2and port9735. Expected:openchannel <bitkit-node-id> 100000opens 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
There was a problem hiding this comment.
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
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
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 --checkand 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 documented10.0.2.2:9735route 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 the3798a007app 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