Skip to content

Commit d7204fc

Browse files
authored
Merge pull request #1484 from keep-network/increase-gs-estimate
Increase group selection gas estimate The current group selection gas estimate doesn't include a corner case when group selection is triggered after previous DKG failed and some related data (previous tickets) must be cleaned up in the same transaction. This cause a gas peak which is returned after cleanup is done but the gas estimate must include it in order to avoid out of gas error. Increasing the value of groupSelectionGasEstimate to 200k should help.
2 parents 9024193 + c5a8a8a commit d7204fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contracts/solidity/contracts/KeepRandomBeaconOperator.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ contract KeepRandomBeaconOperator is ReentrancyGuard {
9898
uint256 public dkgGasEstimate = 1740000;
9999

100100
// Gas required to trigger DKG (starting group selection).
101-
uint256 public groupSelectionGasEstimate = 100000;
101+
uint256 public groupSelectionGasEstimate = 200000;
102102

103103
// Reimbursement for the submitter of the DKG result. This value is set when
104104
// a new DKG request comes to the operator contract.

0 commit comments

Comments
 (0)