File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
contracts/src/arbitration/dispute-kits Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ import "../../rng/RNG.sol";
2121 * - a vote aggreation system: plurality,
2222 * - an incentive system: equal split between coherent votes,
2323 * - an appeal system: fund 2 choices only, vote on any choice.
24+ * TODO:
25+ * - phase management: Generating->Drawing->Resolving->Generating in coordination with KlerosCore to freeze staking.
2426 */
2527contract DisputeKitClassic is DisputeKit {
2628 // ************************************* //
@@ -151,6 +153,14 @@ contract DisputeKitClassic is DisputeKit {
151153 core = KlerosCore (_core);
152154 }
153155
156+ /** @dev Changes the `_rng` storage variable.
157+ * @param _rng The new value for the `RNGenerator` storage variable.
158+ */
159+ function changeRandomNumberGenerator (RNG _rng ) external onlyByGovernor {
160+ rng = _rng;
161+ // TODO: if current phase is generating, call rng.requestRN() for the next block
162+ }
163+
154164 // ************************************* //
155165 // * State Modifiers * //
156166 // ************************************* //
You can’t perform that action at this time.
0 commit comments