ssvlabs / ssv-dkg

GNU General Public License v3.0
12 stars 9 forks source link

Increase bulk size from 100 -> 500 #115

Open MatusKysel opened 1 month ago

MatusKysel commented 1 month ago

Currently have fixed limit of bulk validators https://github.com/ssvlabs/ssv-dkg/blob/unstable/cli/utils/utils.go#L362 set to 100.

For increasing this we should consider changing following values: https://github.com/ssvlabs/ssv-dkg/blob/unstable/pkgs/initiator/initiator.go#L113 https://github.com/ssvlabs/ssv-dkg/blob/unstable/pkgs/wire/dkg.go#L37

and probably implementing this

// FastSync is a mode where nodes sends pre-emptively responses indicating
    // that the shares they received are good. If a share is invalid, a
    // complaint is still sent as usual. This has two consequences:
    //  - In the event all shares are good, nodes don't need to wait for the
    //  timeout; they can already finish the protocol at the point.
    //  - However, it requires nodes to send more messages on the network. We
    //  pass from a O(f) where f is the number of faults to a O(n^2). Note that
    //  the responses messages are small.
    FastSync [bool](https://pkg.go.dev/builtin#bool)

source https://pkg.go.dev/github.com/drand/kyber/share/dkg

With this flag enabled, we should be able to run the DKG ceremony faster, but it will increase the number of messages on the network.

RaekwonIII commented 1 month ago

Yes plz 🙏