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
e798294a
Commit
e798294a
authored
Jul 01, 2014
by
Maran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update min GasLimit
parent
2bbc2043
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
block.go
ethchain/block.go
+1
-1
dagger.go
ethchain/dagger.go
+1
-0
No files found.
ethchain/block.go
View file @
e798294a
...
@@ -166,7 +166,7 @@ func (block *Block) CalcGasLimit(parent *Block) *big.Int {
...
@@ -166,7 +166,7 @@ func (block *Block) CalcGasLimit(parent *Block) *big.Int {
result
:=
new
(
big
.
Int
)
.
Add
(
previous
,
curInt
)
result
:=
new
(
big
.
Int
)
.
Add
(
previous
,
curInt
)
result
.
Div
(
result
,
big
.
NewInt
(
1024
))
result
.
Div
(
result
,
big
.
NewInt
(
1024
))
min
:=
ethutil
.
BigPow
(
10
,
4
)
min
:=
big
.
NewInt
(
125000
)
return
ethutil
.
BigMax
(
min
,
result
)
return
ethutil
.
BigMax
(
min
,
result
)
/*
/*
...
...
ethchain/dagger.go
View file @
e798294a
...
@@ -31,6 +31,7 @@ func (pow *EasyPow) Search(block *Block, reactChan chan ethutil.React) []byte {
...
@@ -31,6 +31,7 @@ func (pow *EasyPow) Search(block *Block, reactChan chan ethutil.React) []byte {
for
{
for
{
select
{
select
{
case
<-
reactChan
:
case
<-
reactChan
:
powlogger
.
Infoln
(
"Breaking from mining"
)
return
nil
return
nil
default
:
default
:
i
++
i
++
...
...
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