Skip to content

Commit

Permalink
Define minimum ritual duration as 24 hours.
Browse files Browse the repository at this point in the history
  • Loading branch information
cygnusv committed Aug 21, 2023
1 parent 2c27bc7 commit 3043214
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/contracts/coordination/Coordinator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ contract Coordinator is AccessControlDefaultAdminRules {
);
uint16 length = uint16(providers.length);
require(2 <= length && length <= maxDkgSize, "Invalid number of nodes");
require(duration > 0, "Invalid ritual duration"); // TODO: We probably want to restrict it more
require(duration >= 24 hours, "Invalid ritual duration"); // TODO: Define minimum duration #106

uint32 id = uint32(rituals.length);
Ritual storage ritual = rituals.push();
Expand Down

0 comments on commit 3043214

Please sign in to comment.