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
ff5703fd
Commit
ff5703fd
authored
Jul 01, 2014
by
zelig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ethutil -> ethtrie.NewTrie
parent
89630d28
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
state_object.go
ethchain/state_object.go
+1
-1
state_transition.go
ethchain/state_transition.go
+2
-1
No files found.
ethchain/state_object.go
View file @
ff5703fd
...
...
@@ -51,7 +51,7 @@ func MakeContract(tx *Transaction, state *State) *StateObject {
func
NewStateObject
(
addr
[]
byte
)
*
StateObject
{
object
:=
&
StateObject
{
address
:
addr
,
Amount
:
new
(
big
.
Int
),
gasPool
:
new
(
big
.
Int
)}
object
.
state
=
NewState
(
eth
util
.
NewTrie
(
ethutil
.
Config
.
Db
,
""
))
object
.
state
=
NewState
(
eth
trie
.
NewTrie
(
ethutil
.
Config
.
Db
,
""
))
return
object
}
...
...
ethchain/state_transition.go
View file @
ff5703fd
...
...
@@ -3,6 +3,7 @@ package ethchain
import
(
"bytes"
"fmt"
"github.com/ethereum/eth-go/ethtrie"
"github.com/ethereum/eth-go/ethutil"
"math/big"
)
...
...
@@ -268,7 +269,7 @@ func Call(vm *Vm, closure *Closure, data []byte) (ret []byte, err error, deepErr
var
(
context
=
closure
.
object
trie
=
context
.
state
.
trie
trie2
=
eth
util
.
NewTrie
(
ethutil
.
Config
.
Db
,
""
)
trie2
=
eth
trie
.
NewTrie
(
ethutil
.
Config
.
Db
,
""
)
)
trie
.
NewIterator
()
.
Each
(
func
(
key
string
,
v
*
ethutil
.
Value
)
{
...
...
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