Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
e126b083
Unverified
Commit
e126b083
authored
Aug 23, 2019
by
Martin Holst Swende
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
retesteth: implement istanbul support
parent
060e33fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
retesteth.go
cmd/geth/retesteth.go
+7
-0
No files found.
cmd/geth/retesteth.go
View file @
e126b083
...
...
@@ -132,6 +132,7 @@ type CParamsParams struct {
ByzantiumForkBlock
*
math
.
HexOrDecimal64
`json:"byzantiumForkBlock"`
ConstantinopleForkBlock
*
math
.
HexOrDecimal64
`json:"constantinopleForkBlock"`
ConstantinopleFixForkBlock
*
math
.
HexOrDecimal64
`json:"constantinopleFixForkBlock"`
IstanbulBlock
*
math
.
HexOrDecimal64
`json:"istanbulForkBlock"`
ChainID
*
math
.
HexOrDecimal256
`json:"chainID"`
MaximumExtraDataSize
math
.
HexOrDecimal64
`json:"maximumExtraDataSize"`
TieBreakingGas
bool
`json:"tieBreakingGas"`
...
...
@@ -319,6 +320,7 @@ func (api *RetestethAPI) SetChainParams(ctx context.Context, chainParams ChainPa
byzantiumBlock
*
big
.
Int
constantinopleBlock
*
big
.
Int
petersburgBlock
*
big
.
Int
istanbulBlock
*
big
.
Int
)
if
chainParams
.
Params
.
HomesteadForkBlock
!=
nil
{
homesteadBlock
=
big
.
NewInt
(
int64
(
*
chainParams
.
Params
.
HomesteadForkBlock
))
...
...
@@ -345,6 +347,10 @@ func (api *RetestethAPI) SetChainParams(ctx context.Context, chainParams ChainPa
if
constantinopleBlock
!=
nil
&&
petersburgBlock
==
nil
{
petersburgBlock
=
big
.
NewInt
(
100000000000
)
}
if
chainParams
.
Params
.
IstanbulBlock
!=
nil
{
istanbulBlock
=
big
.
NewInt
(
int64
(
*
chainParams
.
Params
.
IstanbulBlock
))
}
genesis
:=
&
core
.
Genesis
{
Config
:
&
params
.
ChainConfig
{
ChainID
:
chainId
,
...
...
@@ -357,6 +363,7 @@ func (api *RetestethAPI) SetChainParams(ctx context.Context, chainParams ChainPa
ByzantiumBlock
:
byzantiumBlock
,
ConstantinopleBlock
:
constantinopleBlock
,
PetersburgBlock
:
petersburgBlock
,
IstanbulBlock
:
istanbulBlock
,
},
Nonce
:
uint64
(
chainParams
.
Genesis
.
Nonce
),
Timestamp
:
uint64
(
chainParams
.
Genesis
.
Timestamp
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment