aboutsummaryrefslogtreecommitdiffstats
path: root/params
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2019-03-19 15:02:06 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-06-12 17:27:23 +0800
commit3dadb841289a41303f84ce96a0478a4f3cb8364c (patch)
treeeaffc06fc4afc8bb1aca5926902be3247f3b8a68 /params
parent22314d387813c467038e3cb5c87f99c9d731aeef (diff)
downloadgo-tangerine-3dadb841289a41303f84ce96a0478a4f3cb8364c.tar
go-tangerine-3dadb841289a41303f84ce96a0478a4f3cb8364c.tar.gz
go-tangerine-3dadb841289a41303f84ce96a0478a4f3cb8364c.tar.bz2
go-tangerine-3dadb841289a41303f84ce96a0478a4f3cb8364c.tar.lz
go-tangerine-3dadb841289a41303f84ce96a0478a4f3cb8364c.tar.xz
go-tangerine-3dadb841289a41303f84ce96a0478a4f3cb8364c.tar.zst
go-tangerine-3dadb841289a41303f84ce96a0478a4f3cb8364c.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.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/params/config.go b/params/config.go
index 8986ba5ab..52570d5a4 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")
)
// TrustedCheckpoints associates each known checkpoint with the genesis hash of