diff options
author | Wei-Ning Huang <w@dexon.org> | 2019-04-10 14:32:45 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-10 16:57:32 +0800 |
commit | 79f4bdee98fd8abd9401a3d9e43b917c21d39d18 (patch) | |
tree | 5c46ae4cb357b92f2bdd2a13496bebd633fef298 /core/vm/oracle_contract_abi.go | |
parent | e7fb98f71cdc141ab18232a0f3b76932c0c9d40d (diff) | |
download | dexon-79f4bdee98fd8abd9401a3d9e43b917c21d39d18.tar dexon-79f4bdee98fd8abd9401a3d9e43b917c21d39d18.tar.gz dexon-79f4bdee98fd8abd9401a3d9e43b917c21d39d18.tar.bz2 dexon-79f4bdee98fd8abd9401a3d9e43b917c21d39d18.tar.lz dexon-79f4bdee98fd8abd9401a3d9e43b917c21d39d18.tar.xz dexon-79f4bdee98fd8abd9401a3d9e43b917c21d39d18.tar.zst dexon-79f4bdee98fd8abd9401a3d9e43b917c21d39d18.zip |
core: vm: improve MPK reverse lookup performance
By storing array offset in the original DKGMasterPublicKeyProposed map,
we can locate MPK by proposer ID easily.
Diffstat (limited to 'core/vm/oracle_contract_abi.go')
-rw-r--r-- | core/vm/oracle_contract_abi.go | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/core/vm/oracle_contract_abi.go b/core/vm/oracle_contract_abi.go index 799d0f28f..bd99c0cc7 100644 --- a/core/vm/oracle_contract_abi.go +++ b/core/vm/oracle_contract_abi.go @@ -38,25 +38,6 @@ const GovernanceABIJSON = ` }, { "constant": true, - "inputs": [ - { - "name": "", - "type": "bytes32" - } - ], - "name": "dkgMasterPublicKeyProposed", - "outputs": [ - { - "name": "", - "type": "bool" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, "inputs": [], "name": "totalSupply", "outputs": [ @@ -368,6 +349,25 @@ const GovernanceABIJSON = ` "inputs": [ { "name": "", + "type": "bytes32" + } + ], + "name": "dkgMasterPublicKeyOffset", + "outputs": [ + { + "name": "", + "type": "uint256" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, + { + "constant": true, + "inputs": [ + { + "name": "", "type": "address" } ], |