Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
exchain
nebula
Commits
0a3e2d0c
Commit
0a3e2d0c
authored
Sep 22, 2021
by
George Hotz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more standard statedb
parent
536d424b
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
654 additions
and
107 deletions
+654
-107
database.go
minigeth/core/state/database.go
+7
-0
statedb.go
minigeth/core/state/statedb.go
+643
-107
logger.go
minigeth/log/logger.go
+4
-0
No files found.
minigeth/core/state/database.go
View file @
0a3e2d0c
...
@@ -120,6 +120,13 @@ func (p *triePrefetcher) prefetch(root common.Hash, keys [][]byte) {
...
@@ -120,6 +120,13 @@ func (p *triePrefetcher) prefetch(root common.Hash, keys [][]byte) {
func
(
p
*
triePrefetcher
)
used
(
root
common
.
Hash
,
used
[][]
byte
)
{
func
(
p
*
triePrefetcher
)
used
(
root
common
.
Hash
,
used
[][]
byte
)
{
}
}
func
(
p
*
triePrefetcher
)
close
()
{
}
func
(
p
*
triePrefetcher
)
copy
()
*
triePrefetcher
{
return
p
}
func
(
p
*
triePrefetcher
)
trie
(
root
common
.
Hash
)
Trie
{
func
(
p
*
triePrefetcher
)
trie
(
root
common
.
Hash
)
Trie
{
return
nil
return
nil
}
}
minigeth/core/state/statedb.go
View file @
0a3e2d0c
This diff is collapsed.
Click to expand it.
minigeth/log/logger.go
View file @
0a3e2d0c
...
@@ -19,3 +19,7 @@ func Warn(msg string, ctx ...interface{}) {
...
@@ -19,3 +19,7 @@ func Warn(msg string, ctx ...interface{}) {
func
Error
(
msg
string
,
ctx
...
interface
{})
{
func
Error
(
msg
string
,
ctx
...
interface
{})
{
fmt
.
Println
(
msg
,
ctx
)
fmt
.
Println
(
msg
,
ctx
)
}
}
func
Crit
(
msg
string
,
ctx
...
interface
{})
{
fmt
.
Println
(
msg
,
ctx
)
}
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