sigma0-xyz / zkbitcoin

zkBitcoin: zero-knowledge proofs on Bitcoin!
MIT License
161 stars 31 forks source link

ping & status #3

Closed mimoo closed 6 months ago

mimoo commented 6 months ago

currently we don't really have a good idea of the status of the network, there's two ways we could do it:

  1. in the orchestrator, keep track of who didn't respond in time (and who responded incorrectly as well)
  2. have a /is_alive route in the nodes that the orchestrator can ping every X seconds/minutes, and keep track of nodes that miss their pings (and log it)
mimoo commented 6 months ago

if the orchestrator could have a hashmap of all MPC nodes, and record the status of the last ping, we could return that on the is_alive route of the orchestrator (so that when we ping the orchestrator we get the status of all nodes that appear down)