Skip to content

Commit

Permalink
add gov init transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
unclezoro committed May 22, 2020
1 parent 39c80ce commit 01b4f94
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion consensus/parlia/parlia.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ const (
SystemRewardContract = "0x0000000000000000000000000000000000001002"
LightClientContract = "0x0000000000000000000000000000000000001003"
RelayerHubContract = "0x0000000000000000000000000000000000001006"
GovHubContract = "0x0000000000000000000000000000000000001007"
)

var (
Expand All @@ -74,6 +75,7 @@ var (
common.HexToAddress(SystemRewardContract): true,
common.HexToAddress(LightClientContract): true,
common.HexToAddress(RelayerHubContract): true,
common.HexToAddress(GovHubContract): true,
}
)

Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 01b4f94

Please # to comment.