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
c41f1a3e
Commit
c41f1a3e
authored
Feb 27, 2018
by
Saulius Grigaitis
Committed by
Péter Szilágyi
Feb 27, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
puppeth: fix Parity Chain Spec parameter GasLimitBoundDivision (#16188)
parent
2e9c8fd4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
genesis.go
cmd/puppeth/genesis.go
+14
-14
No files found.
cmd/puppeth/genesis.go
View file @
c41f1a3e
...
@@ -168,19 +168,18 @@ type parityChainSpec struct {
...
@@ -168,19 +168,18 @@ type parityChainSpec struct {
Engine
struct
{
Engine
struct
{
Ethash
struct
{
Ethash
struct
{
Params
struct
{
Params
struct
{
MinimumDifficulty
*
hexutil
.
Big
`json:"minimumDifficulty"`
MinimumDifficulty
*
hexutil
.
Big
`json:"minimumDifficulty"`
DifficultyBoundDivisor
*
hexutil
.
Big
`json:"difficultyBoundDivisor"`
DifficultyBoundDivisor
*
hexutil
.
Big
`json:"difficultyBoundDivisor"`
GasLimitBoundDivisor
hexutil
.
Uint64
`json:"gasLimitBoundDivisor"`
DurationLimit
*
hexutil
.
Big
`json:"durationLimit"`
DurationLimit
*
hexutil
.
Big
`json:"durationLimit"`
BlockReward
*
hexutil
.
Big
`json:"blockReward"`
BlockReward
*
hexutil
.
Big
`json:"blockReward"`
HomesteadTransition
uint64
`json:"homesteadTransition"`
HomesteadTransition
uint64
`json:"homesteadTransition"`
EIP150Transition
uint64
`json:"eip150Transition"`
EIP150Transition
uint64
`json:"eip150Transition"`
EIP160Transition
uint64
`json:"eip160Transition"`
EIP160Transition
uint64
`json:"eip160Transition"`
EIP161abcTransition
uint64
`json:"eip161abcTransition"`
EIP161abcTransition
uint64
`json:"eip161abcTransition"`
EIP161dTransition
uint64
`json:"eip161dTransition"`
EIP161dTransition
uint64
`json:"eip161dTransition"`
EIP649Reward
*
hexutil
.
Big
`json:"eip649Reward"`
EIP649Reward
*
hexutil
.
Big
`json:"eip649Reward"`
EIP100bTransition
uint64
`json:"eip100bTransition"`
EIP100bTransition
uint64
`json:"eip100bTransition"`
EIP649Transition
uint64
`json:"eip649Transition"`
EIP649Transition
uint64
`json:"eip649Transition"`
}
`json:"params"`
}
`json:"params"`
}
`json:"Ethash"`
}
`json:"Ethash"`
}
`json:"engine"`
}
`json:"engine"`
...
@@ -188,6 +187,7 @@ type parityChainSpec struct {
...
@@ -188,6 +187,7 @@ type parityChainSpec struct {
Params
struct
{
Params
struct
{
MaximumExtraDataSize
hexutil
.
Uint64
`json:"maximumExtraDataSize"`
MaximumExtraDataSize
hexutil
.
Uint64
`json:"maximumExtraDataSize"`
MinGasLimit
hexutil
.
Uint64
`json:"minGasLimit"`
MinGasLimit
hexutil
.
Uint64
`json:"minGasLimit"`
GasLimitBoundDivisor
hexutil
.
Uint64
`json:"gasLimitBoundDivisor"`
NetworkID
hexutil
.
Uint64
`json:"networkID"`
NetworkID
hexutil
.
Uint64
`json:"networkID"`
MaxCodeSize
uint64
`json:"maxCodeSize"`
MaxCodeSize
uint64
`json:"maxCodeSize"`
EIP155Transition
uint64
`json:"eip155Transition"`
EIP155Transition
uint64
`json:"eip155Transition"`
...
@@ -270,7 +270,6 @@ func newParityChainSpec(network string, genesis *core.Genesis, bootnodes []strin
...
@@ -270,7 +270,6 @@ func newParityChainSpec(network string, genesis *core.Genesis, bootnodes []strin
}
}
spec
.
Engine
.
Ethash
.
Params
.
MinimumDifficulty
=
(
*
hexutil
.
Big
)(
params
.
MinimumDifficulty
)
spec
.
Engine
.
Ethash
.
Params
.
MinimumDifficulty
=
(
*
hexutil
.
Big
)(
params
.
MinimumDifficulty
)
spec
.
Engine
.
Ethash
.
Params
.
DifficultyBoundDivisor
=
(
*
hexutil
.
Big
)(
params
.
DifficultyBoundDivisor
)
spec
.
Engine
.
Ethash
.
Params
.
DifficultyBoundDivisor
=
(
*
hexutil
.
Big
)(
params
.
DifficultyBoundDivisor
)
spec
.
Engine
.
Ethash
.
Params
.
GasLimitBoundDivisor
=
(
hexutil
.
Uint64
)(
params
.
GasLimitBoundDivisor
)
spec
.
Engine
.
Ethash
.
Params
.
DurationLimit
=
(
*
hexutil
.
Big
)(
params
.
DurationLimit
)
spec
.
Engine
.
Ethash
.
Params
.
DurationLimit
=
(
*
hexutil
.
Big
)(
params
.
DurationLimit
)
spec
.
Engine
.
Ethash
.
Params
.
BlockReward
=
(
*
hexutil
.
Big
)(
ethash
.
FrontierBlockReward
)
spec
.
Engine
.
Ethash
.
Params
.
BlockReward
=
(
*
hexutil
.
Big
)(
ethash
.
FrontierBlockReward
)
spec
.
Engine
.
Ethash
.
Params
.
HomesteadTransition
=
genesis
.
Config
.
HomesteadBlock
.
Uint64
()
spec
.
Engine
.
Ethash
.
Params
.
HomesteadTransition
=
genesis
.
Config
.
HomesteadBlock
.
Uint64
()
...
@@ -284,6 +283,7 @@ func newParityChainSpec(network string, genesis *core.Genesis, bootnodes []strin
...
@@ -284,6 +283,7 @@ func newParityChainSpec(network string, genesis *core.Genesis, bootnodes []strin
spec
.
Params
.
MaximumExtraDataSize
=
(
hexutil
.
Uint64
)(
params
.
MaximumExtraDataSize
)
spec
.
Params
.
MaximumExtraDataSize
=
(
hexutil
.
Uint64
)(
params
.
MaximumExtraDataSize
)
spec
.
Params
.
MinGasLimit
=
(
hexutil
.
Uint64
)(
params
.
MinGasLimit
)
spec
.
Params
.
MinGasLimit
=
(
hexutil
.
Uint64
)(
params
.
MinGasLimit
)
spec
.
Params
.
GasLimitBoundDivisor
=
(
hexutil
.
Uint64
)(
params
.
GasLimitBoundDivisor
)
spec
.
Params
.
NetworkID
=
(
hexutil
.
Uint64
)(
genesis
.
Config
.
ChainId
.
Uint64
())
spec
.
Params
.
NetworkID
=
(
hexutil
.
Uint64
)(
genesis
.
Config
.
ChainId
.
Uint64
())
spec
.
Params
.
MaxCodeSize
=
params
.
MaxCodeSize
spec
.
Params
.
MaxCodeSize
=
params
.
MaxCodeSize
spec
.
Params
.
EIP155Transition
=
genesis
.
Config
.
EIP155Block
.
Uint64
()
spec
.
Params
.
EIP155Transition
=
genesis
.
Config
.
EIP155Block
.
Uint64
()
...
...
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