decred / dcrdex

The Decred Decentralized Exchange (DEX), powered by atomic-swaps.
Other
186 stars 93 forks source link

server/eth: server needs to support startup with failing providers in the list #2122

Closed chappjc closed 1 year ago

chappjc commented 1 year ago

The server supports multiple providers, but at startup they all have to be working (connect as well as not old best header). This means that if a provider gets their issue resolved later, you have to restart the server to start using it again. With multiple providers in the eth.conf, it would make more sense to allow failed providers as long as there is at least one "working". The failing providers can be rechecked periodically, or when rotating through providers. Perhaps as long as the provider can connect at startup we can allow it with an old best header, just disregard that providers results until it is up-to-date?

martonp commented 1 year ago

I'll fix.

JoeGruffins commented 1 year ago

Small thing that is loosely related, the simet harness continually appends to the file at $ETH_CONFIG_PATH in the dcrdex harness. If it could just write a new file every time that would be good.