d-voting icon indicating copy to clipboard operation
d-voting copied to clipboard

Setting up the nodes should work if the majority of the nodes were successfully initialized

Open cmsigrist opened this issue 3 years ago • 0 comments

For the moment, the DKG service requires that all the nodes of the roster be initialized to successfully perform the setup. But the system should still work even if some node are not responding (strictly less than 1/3). The following files / block of codes would need to be modified to achieve this:

The DKG service times out with an error if not all the nodes are initialized: https://github.com/dedis/d-voting/blob/ee2c73d7f1b3d2e1eaa40bb4b2544dfcf2ebe03e/services/dkg/pedersen/mod.go#L235

The status of an election is set to Initial if one of the node is not initialized: https://github.com/dedis/d-voting/blob/c64996536f34f274c39eebd583cfa6a9fefa146c/web/frontend/src/pages/election/Show.tsx#L142

The election does not got to the status Node Initialized if one of the node fails to initialize https://github.com/dedis/d-voting/blob/c64996536f34f274c39eebd583cfa6a9fefa146c/web/frontend/src/pages/election/components/utils/useChangeAction.tsx#L210

If some nodes fail to initialize and consensus cannot be reached because of this, only these nodes should retry the initialization (rather than all of them) https://github.com/dedis/d-voting/blob/c64996536f34f274c39eebd583cfa6a9fefa146c/web/frontend/src/pages/election/components/utils/useChangeAction.tsx#L387

cmsigrist avatar Jul 07 '22 15:07 cmsigrist