atomicDEX-API icon indicating copy to clipboard operation
atomicDEX-API copied to clipboard

If an electrum server is on a fork, kdf doesn't notice or exclude it

Open gcharang opened this issue 5 months ago • 2 comments

Describe the bug

We had 3 or 4 electrum servers for PEP coin. One of them went on a fork and was stuck on a old block. This was causing users to see inconsistent balances based on which server they connected to I suppose. Is there a way for kdf to determine the "best" servers and only connect to them? or should this just be done on coins repo via CI/automated checks on a cron

The change to coins repo that fixed the particular issue: https://github.com/KomodoPlatform/coins/pull/1464

gcharang avatar Aug 10 '25 20:08 gcharang

That should be on the coins repo level maintenance IMO.

onur-ozkan avatar Aug 11 '25 04:08 onur-ozkan

this problem was also mentioned here https://github.com/KomodoPlatform/komodo-defi-framework/issues/2110 kdf could check the height of all electrums when coin is enabled and don't use electrums that are more then x blocks from heighest height blockchain.headers.subscribe returns the height anyway

cipig avatar Aug 11 '25 04:08 cipig