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
53634f1e
Commit
53634f1e
authored
Oct 08, 2018
by
Péter Szilágyi
Committed by
Felix Lange
Oct 08, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trie: remove unused originalRoot field (#17862)
parent
31c4e3a1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
trie.go
trie/trie.go
+3
-5
No files found.
trie/trie.go
View file @
53634f1e
...
@@ -67,7 +67,6 @@ type LeafCallback func(leaf []byte, parent common.Hash) error
...
@@ -67,7 +67,6 @@ type LeafCallback func(leaf []byte, parent common.Hash) error
type
Trie
struct
{
type
Trie
struct
{
db
*
Database
db
*
Database
root
node
root
node
originalRoot
common
.
Hash
// Cache generation values.
// Cache generation values.
// cachegen increases by one with each commit operation.
// cachegen increases by one with each commit operation.
...
@@ -99,7 +98,6 @@ func New(root common.Hash, db *Database) (*Trie, error) {
...
@@ -99,7 +98,6 @@ func New(root common.Hash, db *Database) (*Trie, error) {
}
}
trie
:=
&
Trie
{
trie
:=
&
Trie
{
db
:
db
,
db
:
db
,
originalRoot
:
root
,
}
}
if
root
!=
(
common
.
Hash
{})
&&
root
!=
emptyRoot
{
if
root
!=
(
common
.
Hash
{})
&&
root
!=
emptyRoot
{
rootnode
,
err
:=
trie
.
resolveHash
(
root
[
:
],
nil
)
rootnode
,
err
:=
trie
.
resolveHash
(
root
[
:
],
nil
)
...
...
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