diff options
author | Wei-Ning Huang <w@dexon.org> | 2019-03-19 15:02:06 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 21:32:58 +0800 |
commit | fff05d83302f6c168409e9e614cd9da7d43bc94a (patch) | |
tree | 0acb4bd090edd475ffe75bfcd2c7e95dd7ed7fa7 /params | |
parent | fa793b8d7eeb3601c9b028544f2033228aa95b33 (diff) | |
download | dexon-fff05d83302f6c168409e9e614cd9da7d43bc94a.tar dexon-fff05d83302f6c168409e9e614cd9da7d43bc94a.tar.gz dexon-fff05d83302f6c168409e9e614cd9da7d43bc94a.tar.bz2 dexon-fff05d83302f6c168409e9e614cd9da7d43bc94a.tar.lz dexon-fff05d83302f6c168409e9e614cd9da7d43bc94a.tar.xz dexon-fff05d83302f6c168409e9e614cd9da7d43bc94a.tar.zst dexon-fff05d83302f6c168409e9e614cd9da7d43bc94a.zip |
core: vm: add extra checks to prevent DKG spamming (#272)
Add two maps to check the uniqueness of DKGMasterPublicKey and DKGComplaints to
prevent malicious actors from spamming it.
Diffstat (limited to 'params')
-rw-r--r-- | params/config.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/params/config.go b/params/config.go index 97a46e3be..76ca84cf5 100644 --- a/params/config.go +++ b/params/config.go @@ -26,10 +26,10 @@ import ( // Genesis hashes to enforce below configs on. var ( - MainnetGenesisHash = common.HexToHash("0x075918a1da88f5d7bed21362e22b780d6b04739b04c7fd0aa25d33b86f56a87f") - TestnetGenesisHash = common.HexToHash("0x4e8e72e73b70f096f31910f0f9b930f65291fcff8b344c93dada282df90bb99f") - TaipeiGenesisHash = common.HexToHash("0x8c074f5f0d434e23feda0ba238a8915a2457c6d169a14020afc05e0f7ee812e3") - YilanGenesisHash = common.HexToHash("0x6d4bc5a73bc2b665b23a06bed9d16c5239ca9598a2cbb662677d0329a0819a2d") + MainnetGenesisHash = common.HexToHash("0xcde2f22a8ccad92a6839880e445bccf3949aae712056a9d139a318f9f4b18fe8") + TestnetGenesisHash = common.HexToHash("0x7463c980be61ae7e32e8a7611c9532989dfc4463c264b9ef3d31bfe490780425") + TaipeiGenesisHash = common.HexToHash("0x953540c8dc6155c506b85be9944b97c636948e2cb47b698e4bdf7d58563a6e01") + YilanGenesisHash = common.HexToHash("0x70654e2b863f01f00f843e6c4b0ecf2af39f7e27493f577ca4526b40eb1773c7") ) var ( |