gevulotnetwork / gevulot

Gevulot is an internet scale compute network for zero-knowledge proof generation and verification.
https://gevulot.com
Apache License 2.0
154 stars 48 forks source link

Add the ability to join networks to "seed mode" so that we can run a seed cluster #182

Closed bhechinger closed 6 months ago

bhechinger commented 6 months ago

To be able to reasonably run this in kubernetes we need to be able to run multiple seed pods.

This change has nodes run in p2p-beacon mode to try to join an existing network. This allows us two things.

At start the seed will attempt to contact the nodes listed in the discovery list. After enough attempts instead of failing it will fall back to bootstrapping a brand new network.

bhechinger commented 6 months ago

I think there are some modifications that came from my branch that I merge yesterday. Perhaps you'll need to rebase from main?

I had already re-based but it mangled the formatting. I just needed to re-run cargo fmt

bhechinger commented 6 months ago

I'm fine with the PR in general, but maybe Nix files could be extracted into separate PR and checked for dependencies?

Oh shoot, I missed this message before merging. Let's catch up on slack about how to handle this.