feat: add Eip155ChainID to StateGetNetworkParams

This commit is contained in:
simlecode
2023-07-28 16:03:59 +08:00
parent 3f93b86ebe
commit c3f421a9cd
5 changed files with 6 additions and 2 deletions
+1
View File
@@ -312,6 +312,7 @@ type NetworkParams struct {
SupportedProofTypes []abi.RegisteredSealProof
PreCommitChallengeDelay abi.ChainEpoch
ForkUpgradeParams ForkUpgradeParams
Eip155ChainID int
}
type ForkUpgradeParams struct {
Binary file not shown.
+2 -1
View File
@@ -5446,7 +5446,8 @@ Response:
"UpgradeHyggeHeight": 10101,
"UpgradeLightningHeight": 10101,
"UpgradeThunderHeight": 10101
}
},
"Eip155ChainID": 123
}
```
+2 -1
View File
@@ -6958,7 +6958,8 @@ Response:
"UpgradeHyggeHeight": 10101,
"UpgradeLightningHeight": 10101,
"UpgradeThunderHeight": 10101
}
},
"Eip155ChainID": 123
}
```
+1
View File
@@ -1786,6 +1786,7 @@ func (a *StateAPI) StateGetNetworkParams(ctx context.Context) (*api.NetworkParam
ConsensusMinerMinPower: build.ConsensusMinerMinPower,
SupportedProofTypes: build.SupportedProofTypes,
PreCommitChallengeDelay: build.PreCommitChallengeDelay,
Eip155ChainID: build.Eip155ChainId,
ForkUpgradeParams: api.ForkUpgradeParams{
UpgradeSmokeHeight: build.UpgradeSmokeHeight,
UpgradeBreezeHeight: build.UpgradeBreezeHeight,