Merge pull request #10987 from simlecode/feat/add-Eip155ChainID

feat: add Eip155ChainID to StateGetNetworkParams
This commit is contained in:
Aayush Rajasekaran 2023-08-09 20:02:05 -04:00 committed by GitHub
commit 1da18e8058
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 2 deletions

View File

@ -312,6 +312,7 @@ type NetworkParams struct {
SupportedProofTypes []abi.RegisteredSealProof SupportedProofTypes []abi.RegisteredSealProof
PreCommitChallengeDelay abi.ChainEpoch PreCommitChallengeDelay abi.ChainEpoch
ForkUpgradeParams ForkUpgradeParams ForkUpgradeParams ForkUpgradeParams
Eip155ChainID int
} }
type ForkUpgradeParams struct { type ForkUpgradeParams struct {

Binary file not shown.

View File

@ -5446,7 +5446,8 @@ Response:
"UpgradeHyggeHeight": 10101, "UpgradeHyggeHeight": 10101,
"UpgradeLightningHeight": 10101, "UpgradeLightningHeight": 10101,
"UpgradeThunderHeight": 10101 "UpgradeThunderHeight": 10101
} },
"Eip155ChainID": 123
} }
``` ```

View File

@ -6958,7 +6958,8 @@ Response:
"UpgradeHyggeHeight": 10101, "UpgradeHyggeHeight": 10101,
"UpgradeLightningHeight": 10101, "UpgradeLightningHeight": 10101,
"UpgradeThunderHeight": 10101 "UpgradeThunderHeight": 10101
} },
"Eip155ChainID": 123
} }
``` ```

View File

@ -1786,6 +1786,7 @@ func (a *StateAPI) StateGetNetworkParams(ctx context.Context) (*api.NetworkParam
ConsensusMinerMinPower: build.ConsensusMinerMinPower, ConsensusMinerMinPower: build.ConsensusMinerMinPower,
SupportedProofTypes: build.SupportedProofTypes, SupportedProofTypes: build.SupportedProofTypes,
PreCommitChallengeDelay: build.PreCommitChallengeDelay, PreCommitChallengeDelay: build.PreCommitChallengeDelay,
Eip155ChainID: build.Eip155ChainId,
ForkUpgradeParams: api.ForkUpgradeParams{ ForkUpgradeParams: api.ForkUpgradeParams{
UpgradeSmokeHeight: build.UpgradeSmokeHeight, UpgradeSmokeHeight: build.UpgradeSmokeHeight,
UpgradeBreezeHeight: build.UpgradeBreezeHeight, UpgradeBreezeHeight: build.UpgradeBreezeHeight,