wizardsardine / liana

The missing safety net for your coins
https://wizardsardine.com/liana
BSD 3-Clause "New" or "Revised" License
306 stars 53 forks source link

GUI freezes upon inputing unreachable Electrum server in settings of bitcoind-using Liana wallet #1290

Open darosior opened 1 week ago

darosior commented 1 week ago

Testing Electrum support by switching my Liana wallet to Electrum, if i input an incorrect or unreachable server it just freezes the GUI. image

darosior commented 1 week ago

Some logs. It can connect but it fails to talk to it. It's because i'm missing the ssl:// prefix, so it probably tries to speak in clear to it.

  2024-09-07T09:55:05.017550Z  WARN electrum_client::client:202: call 'block_header_raw' failed with Resource temporarily unavailable (os error 11), retry: 1/6                                                     

  2024-09-07T09:55:07.042372Z  INFO electrum_client::raw_client:205: Trying to connect to 3.227.177.134:50002 (attempt 1/1) with timeout 180s                               

  2024-09-07T09:55:07.141989Z  INFO electrum_client::client:202: Succesfully created new client           

  2024-09-07T09:55:07.142360Z TRACE electrum_client::raw_client:593: ==> {"jsonrpc":"2.0","id":0,"method":"blockchain.block.header","params":[0]}                                                                   

  2024-09-07T09:55:07.142566Z TRACE electrum_client::raw_client:479: Starting reader thread with `until_message` = Some(0)                                                                                          
darosior commented 1 week ago

Seems like it would be fixed by your idea of pinging the server in the dummy client to test the connection.