diff options
author | Wei-Ning Huang <w@dexon.org> | 2019-03-19 13:50:47 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-03-19 15:50:21 +0800 |
commit | a0ac5d7b2005f44424851515625a62483a032fc5 (patch) | |
tree | de6e963075b39de2d4cc59c55c578ede2102406a | |
parent | 07c8a2e69d5942137daf5405aaffe6089344cdd9 (diff) | |
download | dexon-governance-abi-a0ac5d7b2005f44424851515625a62483a032fc5.tar dexon-governance-abi-a0ac5d7b2005f44424851515625a62483a032fc5.tar.gz dexon-governance-abi-a0ac5d7b2005f44424851515625a62483a032fc5.tar.bz2 dexon-governance-abi-a0ac5d7b2005f44424851515625a62483a032fc5.tar.lz dexon-governance-abi-a0ac5d7b2005f44424851515625a62483a032fc5.tar.xz dexon-governance-abi-a0ac5d7b2005f44424851515625a62483a032fc5.tar.zst dexon-governance-abi-a0ac5d7b2005f44424851515625a62483a032fc5.zip |
contracts: add notary set size calculation parameters
-rw-r--r-- | contracts/Governance.sol | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/contracts/Governance.sol b/contracts/Governance.sol index 80169ef..161b664 100644 --- a/contracts/Governance.sol +++ b/contracts/Governance.sol @@ -101,27 +101,34 @@ contract Governance { uint256 public blockGasLimit; // Lambda related. - // 26 + // 26: BA. uint256 public lambdaBA; - // 27 + // 27: DKG. uint256 public lambdaDKG; // Set related. - // 28 + // 28: notary set size uint256 public notarySetSize; - // 29 + + // 29: notary set parameter: alpha. + uint256 public notaryParamAlpha; // stored as notaryParamAlpha * 10^8 + + // 30: notary set parameter: beta. + uint256 public notaryParamBeta; // stored as notaryParamBeta * 10^8 + + // 31: DKG set size. uint256 public dkgSetSize; - // 30: roundLength. + // 32: roundLength. uint256 public roundLength; - // 31: minBlockInterval. + // 33: minBlockInterval. uint256 public minBlockInterval; - // 32: Fine value. + // 34: Fine value. uint256[] public fineValues; - // 33: Fined records. + // 35: Fined records. mapping(bytes32 => bool) public finedRecords; // ---------- @@ -159,8 +166,8 @@ contract Governance { uint256 BlockGasLimit, uint256 LambdaBA, uint256 LambdaDKG, - uint256 NotarySetSize, - uint256 DKGSetSize, + uint256 NotaryParamAlpha, + uint256 NotaryParamBeta, uint256 RoundLength, uint256 MinBlockInterval, uint256[] memory FineValues) |