MutinyWallet / mutiny-node

SDK behind Mutiny Wallet
https://mutinywallet.com
MIT License
187 stars 36 forks source link

Don't block wallet loading on gateway switching #1225

Closed TonyGiorgio closed 5 months ago

TonyGiorgio commented 5 months ago
2024-06-18 15:19:48.164 8325 ERROR [mutiny_core::federation:357] Could not update lightning gateway cache: Federation rpc error {general => Received errors from 2 peers: peer-1: Rpc error: Request timeout, peer-2: Rpc error: The background task closed WebSocket connection failed; restart required), 1 => Rpc error: Request timeout)2 => Rpc error: The background task closed WebSocket connection failed; restart required), }
2024-06-18 15:19:48.166 8325 INFO  [mutiny_core::federation:366] Setting active gateway for federation c944b2fd1e7fe04ca87f9a57d7894cb69116cec6264cb52faa71228f4ec54cd6: 02194f0abcd0adb6de59e8f7a43d511fe7cfd59336244b4a3b23d8b417d016f242
2024-06-18 15:19:48.166 8325 TRACE [mutiny_core::federation:375] Setting active gateway took: 60029ms
benthecarman commented 5 months ago

this already happens in the background

https://github.com/MutinyWallet/mutiny-node/blob/fa4280286208b973467243c67be501657d6a44ff/mutiny-core/src/federation.rs#L346

TonyGiorgio commented 5 months ago

Something is blocking on it.