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
27f7aa01
Commit
27f7aa01
authored
Mar 17, 2015
by
Felix Lange
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core: adapt Message for new Transaction.From signature
parent
b95387a0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
block_processor.go
core/block_processor.go
+2
-1
state_transition.go
core/state_transition.go
+3
-2
No files found.
core/block_processor.go
View file @
27f7aa01
...
...
@@ -81,7 +81,8 @@ func (self *BlockProcessor) ApplyTransaction(coinbase *state.StateObject, stated
_
,
gas
,
err
:=
ApplyMessage
(
NewEnv
(
statedb
,
self
.
bc
,
tx
,
block
),
tx
,
cb
)
if
err
!=
nil
&&
(
IsNonceErr
(
err
)
||
state
.
IsGasLimitErr
(
err
)
||
IsInvalidTxErr
(
err
))
{
// If the account is managed, remove the invalid nonce.
self
.
bc
.
TxState
()
.
RemoveNonce
(
tx
.
From
(),
tx
.
Nonce
())
from
,
_
:=
tx
.
From
()
self
.
bc
.
TxState
()
.
RemoveNonce
(
from
,
tx
.
Nonce
())
return
nil
,
nil
,
err
}
...
...
core/state_transition.go
View file @
27f7aa01
...
...
@@ -44,9 +44,10 @@ type StateTransition struct {
env
vm
.
Environment
}
// Message represents a message sent to a contract.
type
Message
interface
{
From
()
common
.
Address
To
()
common
.
Address
From
()
(
common
.
Address
,
error
)
To
()
*
common
.
Address
GasPrice
()
*
big
.
Int
Gas
()
*
big
.
Int
...
...
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