Skip to content

feat: use onchain wallet from lnbits core (v1.7.0) - #94

Open
talvasconcelos wants to merge 7 commits into
mainfrom
feat/allow_onchain_wallet
Open

talvasconcelos wants to merge 7 commits into
mainfrom
feat/allow_onchain_wallet

Conversation

@talvasconcelos

Copy link
Copy Markdown
Collaborator

Use onchain wallet feature

@talvasconcelos talvasconcelos changed the title feat: use onchain wallet from lnbits core feat: use onchain wallet from lnbits core (v1.7.0) Oct 27, 2026
Add the `core:<wallet-id>` reference alongside existing watchonly IDs.
Core wallets are listed before watchonly wallets, filtered to the
configured network, and validated server-side for ownership, readiness,
hot-wallet backup, and network.

Generate fresh addresses through the core onchain address endpoint using
the selected wallet's invoice key. Bare watchonly IDs and the existing
watchonly address path remain unchanged.

Add setup, backup, and create-wallet UI actions, and reject a mismatched
standard mempool.space URL before creating a payable checkout. Track the
charge only after it is persisted.
Mempool address tracking is a live delta subscription. It does not replay
state, the client must send `init`, and reconnect loses the subscriptions.
SatsPay also treated the delta payload as the full balance, so confirmed
and partial payments were unreliable.

Send `init`, resubscribe tracked addresses after every connect, and use
websocket events only as triggers for an authoritative HTTP balance
refresh.

Add one poll task per open charge as the missed-event fallback. It stops
when the charge is paid, expired, deleted, or missing, and all tasks are
cancelled when the extension stops. The previous global poll task is
removed.
@talvasconcelos
talvasconcelos force-pushed the feat/allow_onchain_wallet branch from 140881b to c899eeb Compare November 2, 2026 14:54
@talvasconcelos
talvasconcelos marked this pull request as ready for review November 2, 2026 14:57
@talvasconcelos
talvasconcelos requested review from a team, DoktorShift, arcbtc, blackcoffeexbt, motorina0 and prusnak and removed request for a team, DoktorShift and prusnak November 2, 2026 14:57
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