good morning!!!!
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
bor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open
bor
Commits
53634f1e
Commit
53634f1e
authored
Oct 8, 2018
by
Péter Szilágyi
Committed by
Felix Lange
Oct 8, 2018
Browse files
Options
Downloads
Patches
Plain Diff
trie: remove unused originalRoot field (#17862)
parent
31c4e3a1
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
trie/trie.go
+3
-5
3 additions, 5 deletions
trie/trie.go
with
3 additions
and
5 deletions
trie/trie.go
+
3
−
5
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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment