From 8cb075d56afff2de6932c7f9e09cbe45c2f832ef Mon Sep 17 00:00:00 2001 From: Jakub Nowakowski Date: Mon, 22 Aug 2022 12:39:09 +0200 Subject: [PATCH] Disable onlyUnlocked for insertOperator For test environment we want to disable onlyUnlocked for insertOperator to let operators join the sortion pool anytime, even if DKG is currently in progress. DO NOT MERGE THIS COMMIT TO THE MAIN BRANCH! --- contracts/SortitionPool.sol | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contracts/SortitionPool.sol b/contracts/SortitionPool.sol index e7139c5..6e69797 100644 --- a/contracts/SortitionPool.sol +++ b/contracts/SortitionPool.sol @@ -105,7 +105,9 @@ contract SortitionPool is SortitionTree, Rewards, Ownable, IReceiveApproval { function insertOperator(address operator, uint256 authorizedStake) public onlyOwner - onlyUnlocked + // TODO: Disabled temporarily for a test environment. This should never be disabled + // in normal circumstances. + // onlyUnlocked { uint256 weight = getWeight(authorizedStake); require(weight > 0, "Operator not eligible");