Commit Graph

4 Commits

Author SHA1 Message Date
tomFlowee 50b4ba57aa Make finding electron servers more agressive.
This moves the fetching (by dns) of the servers to the launch of Pay
instead of at the start of the module.

This periodically removes punishment scores in order to reassess remotes
and have long health guarentee.

This also works harder to find any servers even if all have a higher
punishment somehow.
2025-04-13 13:00:03 +02:00
tomFlowee 6420523847 Port asio to stop using deprecated methods. 2025-02-11 19:52:03 +01:00
tomFlowee 46d73996d7 Make the ImportHandler & IndexerServices work together
We now get an actual endpoint from the IndexerServices which is handed
to the ImportHandler for remote services.

This also includes a bunch of bugfixes and basic 'make it work' stuff.
2024-05-03 11:53:08 +02:00
tomFlowee 6b31d46892 Add IndexerServics to find electrum indexers
This does not hardcode any indexers, as that would be fragile as
well as painting a bulls-eye on the backs of the server operators
for ddos targets.

Instead this reuses the same concept from Satoshi's Bitcoin. We have
DNS feeds (currently only one) maintained by a crawler.
This finds us a handful of Electrum servers.
We connect to one of those to find more servers, notice that this is
not SSL encrypted because we only have an IP address at that time
while SSL wants a hostname.

This quick connection over plainnet is there just to fetch the
server list known to the server, we can then open an SSL connection
to any of those.
2024-04-29 12:15:43 +02:00