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
f8c1eb15
Commit
f8c1eb15
authored
Feb 05, 2015
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Undone fix. Will re-enable once chain resets
parent
cad53fa1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
12 deletions
+5
-12
block_processor.go
core/block_processor.go
+5
-12
No files found.
core/block_processor.go
View file @
f8c1eb15
...
...
@@ -129,20 +129,14 @@ func (self *BlockProcessor) ApplyTransactions(coinbase *state.StateObject, state
cumulativeSum
=
new
(
big
.
Int
)
)
done
:
for
i
,
tx
:=
range
txs
{
for
_
,
tx
:=
range
txs
{
receipt
,
txGas
,
err
:=
self
.
ApplyTransaction
(
coinbase
,
state
,
block
,
tx
,
totalUsedGas
,
transientProcess
)
if
err
!=
nil
{
return
nil
,
nil
,
nil
,
nil
,
err
switch
{
case
IsNonceErr
(
err
)
:
err
=
nil
// ignore error
continue
return
nil
,
nil
,
nil
,
nil
,
err
case
IsGasLimitErr
(
err
)
:
unhandled
=
txs
[
i
:
]
break
done
return
nil
,
nil
,
nil
,
nil
,
err
default
:
statelogger
.
Infoln
(
err
)
erroneous
=
append
(
erroneous
,
tx
)
...
...
@@ -260,9 +254,8 @@ func (sm *BlockProcessor) ValidateBlock(block, parent *types.Block) error {
return
fmt
.
Errorf
(
"Difficulty check failed for block %v, %v"
,
block
.
Header
()
.
Difficulty
,
expd
)
}
diff
:=
block
.
Header
()
.
Time
-
parent
.
Header
()
.
Time
if
diff
<=
0
{
return
ValidationError
(
"Block timestamp not after prev block %v (%v - %v)"
,
diff
,
block
.
Header
()
.
Time
,
sm
.
bc
.
CurrentBlock
()
.
Header
()
.
Time
)
if
block
.
Time
()
<
parent
.
Time
()
{
return
ValidationError
(
"Block timestamp not after prev block (%v - %v)"
,
block
.
Header
()
.
Time
,
parent
.
Header
()
.
Time
)
}
if
block
.
Time
()
>
time
.
Now
()
.
Unix
()
{
...
...
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