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
e69d5b32
Commit
e69d5b32
authored
Mar 13, 2015
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Increased genesis gas & gas floor limit to 3141592
parent
f76cc669
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
chain_manager.go
core/chain_manager.go
+1
-3
genesis.go
core/genesis.go
+2
-1
No files found.
core/chain_manager.go
View file @
e69d5b32
...
...
@@ -68,9 +68,7 @@ func CalcGasLimit(parent, block *types.Block) *big.Int {
result
:=
new
(
big
.
Int
)
.
Add
(
previous
,
curInt
)
result
.
Div
(
result
,
big
.
NewInt
(
1024
))
min
:=
big
.
NewInt
(
125000
)
return
ethutil
.
BigMax
(
min
,
result
)
return
ethutil
.
BigMax
(
GenesisGasLimit
,
result
)
}
type
ChainManager
struct
{
...
...
core/genesis.go
View file @
e69d5b32
...
...
@@ -23,11 +23,12 @@ var EmptyShaList = crypto.Sha3(ethutil.Encode([]interface{}{}))
var
EmptyListRoot
=
crypto
.
Sha3
(
ethutil
.
Encode
(
""
))
var
GenesisDiff
=
big
.
NewInt
(
131072
)
var
GenesisGasLimit
=
big
.
NewInt
(
3141592
)
func
GenesisBlock
(
db
ethutil
.
Database
)
*
types
.
Block
{
genesis
:=
types
.
NewBlock
(
ZeroHash256
,
ZeroHash160
,
nil
,
GenesisDiff
,
42
,
""
)
genesis
.
Header
()
.
Number
=
ethutil
.
Big0
genesis
.
Header
()
.
GasLimit
=
big
.
NewInt
(
1000000
)
genesis
.
Header
()
.
GasLimit
=
GenesisGasLimit
genesis
.
Header
()
.
GasUsed
=
ethutil
.
Big0
genesis
.
Header
()
.
Time
=
0
genesis
.
Header
()
.
SeedHash
=
make
([]
byte
,
32
)
...
...
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