-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow for trusted inbound 0conf channels #69
Conversation
87a3583
to
9610723
Compare
Rebased. |
9610723
to
e0bb02c
Compare
Fixed some things and added a rudimentary test to check 0conf actually works. Also rebased on #25 while at it. |
e0bb02c
to
2b3959e
Compare
Rebased after #25 has been merged. |
4d90ae4
to
7de34ce
Compare
Undrafting as both concerns are fixed: trusted peers are now set via |
7de34ce
to
095e82b
Compare
Rebased on main. |
b4fba51
to
bb6f5c2
Compare
Rebased on main. |
0a8a0ff
to
72b155c
Compare
Rebased on main. |
72b155c
to
2b35f53
Compare
Rebased on main. |
2b35f53
to
db6ede7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Feel free to squash fixups.
db6ede7
to
4c26c25
Compare
Squashed without further changes. |
* Include LDK Node package, skeleton manager class * WIP * make Node published, move build to start() * Create node in new flow, listen for node to switch to home * Sync when homescreen opens * Remove unused blocksocket * Sync on dispatchQueue * TEMP: save node seed in keychain and check on start * Use ldknode for onchain address * Use ldknode for total and spendable onchain balance * Remove bdkmanager, ldkmanager * Remove bdk-swift package * Move extractNodeSeed to backupmanager * Tweak temp spacing * Refactor * Refactor * Refactor listeningAddress to one default * Replace default url * Use local branch of ldk-node to allow 0conf channels lightningdevkit/ldk-node#69 * Test Voltage wrapped invoice creation, new file LSP.swift * Print node id and original invoice for debugging * Replace request QR code with UnifiedQRCode * Use amount in lightning invoice (not yet for onchain as it needs conversion) * Include onchain amount in unified request, extensions for converting from sats to bitcoin * Replace with official LDKNode package * Use static file directory path, previous caused errors * Reduce invoice expiry time to less than 10 minutes set by Voltage * Refactor BackupManager, use mnemonic with ldkNode (not working) * Revert to filemanager path * Update readme
Based on #25.We set the peer to manually handle incoming channel request and allow inbound 0conf channels for trusted peers.
Setting this to draft as a) I'm not sure we'd always want to go the manually accept route and b) we want to always expose this as an additional bool on connect methods and c) this needs additional tests.