From 01b4f94acb097e16b5ce7bf32bad45b30908d54f Mon Sep 17 00:00:00 2001 From: fudongbai <296179868@qq.com> Date: Wed, 13 May 2020 17:57:53 +0800 Subject: [PATCH] add gov init transaction --- consensus/parlia/parlia.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/consensus/parlia/parlia.go b/consensus/parlia/parlia.go index 368f4abfbd..23cad2c222 100644 --- a/consensus/parlia/parlia.go +++ b/consensus/parlia/parlia.go @@ -59,6 +59,7 @@ const ( SystemRewardContract = "0x0000000000000000000000000000000000001002" LightClientContract = "0x0000000000000000000000000000000000001003" RelayerHubContract = "0x0000000000000000000000000000000000001006" + GovHubContract = "0x0000000000000000000000000000000000001007" ) var ( @@ -74,6 +75,7 @@ var ( common.HexToAddress(SystemRewardContract): true, common.HexToAddress(LightClientContract): true, common.HexToAddress(RelayerHubContract): true, + common.HexToAddress(GovHubContract): true, } ) @@ -975,7 +977,7 @@ func (p *Parlia) initContract(state *state.StateDB, header *types.Header, chain // method method := "init" // contracts - contracts := []string{ValidatorContract, SlashContract, LightClientContract, RelayerHubContract} + contracts := []string{ValidatorContract, SlashContract, LightClientContract, RelayerHubContract, GovHubContract} // get packed data data, err := p.validatorSetABI.Pack(method) if err != nil {