KomodoPlatform / komodo-defi-framework

This is the official Komodo DeFi Framework repository
https://komodoplatform.com/en/docs/komodo-defi-framework/
102 stars 94 forks source link

Connect to only one coin electrum at the time #791

Open tonymorony opened 3 years ago

tonymorony commented 3 years ago

Noticed that atomicDEX-API keeping connections to all electrums from electrum RPC call params.

Since connection operation is very fast I think it might be worth to keep a connection to single electrum only and connect to another only in case of connectivity issues to the active one. It'll reduce the number of connections to electrums multiple times (what can reduce the number of file descriptors what might allow activating more coins on mobile lets say)

artemii235 commented 3 years ago

Thanks for opening the issue! It is a nice enhancement indeed. We can mix it with the general Electrum client refactoring: https://github.com/KomodoPlatform/atomicDEX-API/issues/746. I guess we will find the time to implement this next month.