Skip to content

swap_server: fix some issues running swap server - #10850

Open
accumulator wants to merge 1 commit into
spesmilo:masterfrom
accumulator:swapserver_fixes
Open

swap_server: fix some issues running swap server#10850
accumulator wants to merge 1 commit into
spesmilo:masterfrom
accumulator:swapserver_fixes

Conversation

@accumulator

@accumulator accumulator commented Aug 14, 2026

Copy link
Copy Markdown
Member
  • SwapServerPlugin.server was never set, so the guard on 'use the first wallet loaded' was ineffective
  • exclude non-lightning wallets for consideration
  • disabling the plugin left the server running
  • use async with .. in run_nostr_server(). non-async would block on __exit__, fut.result(timeout=5) would time-out since it runs on the asyncio thread.

@accumulator
accumulator force-pushed the swapserver_fixes branch 5 times, most recently from 3b1dd34 to 92d5d7a Compare August 14, 2026 10:52
- SwapServerPlugin.server was never set, so the guard on 'use the first wallet loaded' was
  ineffective
- exclude non-lightning wallets for consideration
- disabling the plugin left the server running
- use async with .. in run_nostr_server(). non-async would block on __exit__, fut.result(timeout=5)
  would time-out since it runs on the asyncio thread.
@accumulator
accumulator marked this pull request as ready for review August 14, 2026 11:27
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