diff options
author | Wei-Ning Huang <w@dexon.org> | 2019-03-06 10:49:27 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 21:32:57 +0800 |
commit | 51466757595b8e953ca0920020ee4686dc63533c (patch) | |
tree | 1731c76b267dfc0a048a0104ea596e3077caceb2 /core/vm/oracle_contract_abi.go | |
parent | b708ec0f082d431dfe6d56882d58043811647ac7 (diff) | |
download | dexon-51466757595b8e953ca0920020ee4686dc63533c.tar dexon-51466757595b8e953ca0920020ee4686dc63533c.tar.gz dexon-51466757595b8e953ca0920020ee4686dc63533c.tar.bz2 dexon-51466757595b8e953ca0920020ee4686dc63533c.tar.lz dexon-51466757595b8e953ca0920020ee4686dc63533c.tar.xz dexon-51466757595b8e953ca0920020ee4686dc63533c.tar.zst dexon-51466757595b8e953ca0920020ee4686dc63533c.zip |
core: vm: validate addDKGMasterPublicKey caller properly (#220)
There are two keys in the system: one is the owner's key which is used
for stake / unstake. The other is the node key which is used for DKG
related operations. We need to allow them to be different so fund
renmains safe even if the the node key is lost.
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 43055bc4a..8e931094b 100644 --- a/core/vm/oracle_contract_abi.go +++ b/core/vm/oracle_contract_abi.go @@ -261,25 +261,6 @@ const GovernanceABIJSON = ` }, { "constant": true, - "inputs": [ - { - "name": "", - "type": "bytes32" - } - ], - "name": "nodesOffsetByID", - "outputs": [ - { - "name": "", - "type": "int256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, "inputs": [], "name": "totalStaked", "outputs": [ @@ -567,6 +548,25 @@ const GovernanceABIJSON = ` }, { "constant": true, + "inputs": [ + { + "name": "", + "type": "address" + } + ], + "name": "nodesOffsetByNodeKeyAddress", + "outputs": [ + { + "name": "", + "type": "int256" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, + { + "constant": true, "inputs": [], "name": "lockupPeriod", "outputs": [ |