summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2019-02-11 14:11:45 +0800
committerJimmy Hu <jimmy.hu@dexon.org>2019-02-11 15:29:58 +0800
commitd57cdfbfd99f0d0fc2730eff1e3d6150d487e7e5 (patch)
treedf8a2b2f61e8b27028d6b2e914f5a24d7996b87f
parentbd21d50bdfd42612f3a9a526080dd8af504d9fb0 (diff)
downloaddexon-governance-abi-d57cdfbfd99f0d0fc2730eff1e3d6150d487e7e5.tar
dexon-governance-abi-d57cdfbfd99f0d0fc2730eff1e3d6150d487e7e5.tar.gz
dexon-governance-abi-d57cdfbfd99f0d0fc2730eff1e3d6150d487e7e5.tar.bz2
dexon-governance-abi-d57cdfbfd99f0d0fc2730eff1e3d6150d487e7e5.tar.lz
dexon-governance-abi-d57cdfbfd99f0d0fc2730eff1e3d6150d487e7e5.tar.xz
dexon-governance-abi-d57cdfbfd99f0d0fc2730eff1e3d6150d487e7e5.tar.zst
dexon-governance-abi-d57cdfbfd99f0d0fc2730eff1e3d6150d487e7e5.zip
contracts: add reset DKG functionsdexon-classic
-rw-r--r--contracts/Governance.sol8
1 files changed, 8 insertions, 0 deletions
diff --git a/contracts/Governance.sol b/contracts/Governance.sol
index b4fd2c6..8a3a44b 100644
--- a/contracts/Governance.sol
+++ b/contracts/Governance.sol
@@ -126,6 +126,9 @@ contract Governance {
// 32: Fined records.
mapping(bytes32 => bool) public finedRecords;
+ // 33: DKG reset count
+ uint256[] public DKGResetCount;
+
// ----------
// Modifiers.
// ----------
@@ -148,6 +151,7 @@ contract Governance {
event ForkReported(address indexed NodeAddress, uint256 Type, bytes Arg1, bytes Arg2);
event Fined(address indexed NodeAddress, uint256 Amount);
event FinePaid(address indexed NodeAddress, uint256 Amount);
+ event DKGReset(uint256 indexed Round, uint256 BlockHeight);
// transferOwnership()
function transferOwnership(address newOwner) public onlyOwner {
@@ -231,4 +235,8 @@ contract Governance {
// Report(enum type, bytes[] payloads)
function report(uint256 Type, bytes memory Arg1, bytes memory Arg2) public {
}
+
+ // ResetDKG(newSignedCRS)
+ function resetDKG(bytes memory NewSignedCRS) public {
+ }
}