From ef1e8746d64568ac175eff82e414b9a7d9b7095e Mon Sep 17 00:00:00 2001 From: fudongbai <296179868@qq.com> Date: Tue, 30 Jun 2020 08:38:01 +0000 Subject: [PATCH] add cross chain contract to system contract --- consensus/parlia/parlia.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/consensus/parlia/parlia.go b/consensus/parlia/parlia.go index 304b6f123bcd..f111cd0a835b 100644 --- a/consensus/parlia/parlia.go +++ b/consensus/parlia/parlia.go @@ -62,6 +62,7 @@ const ( RelayerIncentivizeContract = "0x0000000000000000000000000000000000001005" RelayerHubContract = "0x0000000000000000000000000000000000001006" GovHubContract = "0x0000000000000000000000000000000000001007" + CrossChainContract = "0x0000000000000000000000000000000000002000" ) var ( @@ -80,6 +81,7 @@ var ( common.HexToAddress(GovHubContract): true, common.HexToAddress(TokenHubContract): true, common.HexToAddress(RelayerIncentivizeContract): true, + common.HexToAddress(CrossChainContract): true, } ) @@ -984,7 +986,7 @@ func (p *Parlia) initContract(state *state.StateDB, header *types.Header, chain // method method := "init" // contracts - contracts := []string{ValidatorContract, SlashContract, LightClientContract, RelayerHubContract, GovHubContract, TokenHubContract, RelayerIncentivizeContract} + contracts := []string{ValidatorContract, SlashContract, LightClientContract, RelayerHubContract, TokenHubContract, RelayerIncentivizeContract, CrossChainContract} // get packed data data, err := p.validatorSetABI.Pack(method) if err != nil { @@ -1189,3 +1191,4 @@ func applyMessage( } return msg.Gas() - returnGas, err } +