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
723074e7
Commit
723074e7
authored
Sep 19, 2014
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dump
parent
e429e261
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
flags.go
ethereum/flags.go
+1
-0
main.go
ethereum/main.go
+2
-0
No files found.
ethereum/flags.go
View file @
723074e7
...
...
@@ -74,6 +74,7 @@ func Init() {
flag
.
IntVar
(
&
LogLevel
,
"loglevel"
,
int
(
ethlog
.
InfoLevel
),
"loglevel: 0-5: silent,error,warn,info,debug,debug detail)"
)
flag
.
BoolVar
(
&
DiffTool
,
"difftool"
,
false
,
"creates output for diff'ing. Sets LogLevel=0"
)
flag
.
StringVar
(
&
DiffType
,
"diff"
,
"all"
,
"sets the level of diff output [vm, all]. Has no effect if difftool=false"
)
flag
.
BoolVar
(
&
ShowGenesis
,
"genesis"
,
false
,
"Dump the genesis block"
)
flag
.
BoolVar
(
&
Dump
,
"dump"
,
false
,
"output the ethereum state in JSON format. Sub args [number, hash]"
)
flag
.
StringVar
(
&
DumpHash
,
"hash"
,
""
,
"specify arg in hex"
)
...
...
ethereum/main.go
View file @
723074e7
...
...
@@ -76,6 +76,8 @@ func main() {
os
.
Exit
(
1
)
}
fmt
.
Printf
(
"RLP: %x
\n
state: %x
\n
hash: %x
\n
"
,
ethutil
.
Rlp
(
block
),
block
.
GetRoot
(),
block
.
Hash
())
// Leave the Println. This needs clean output for piping
fmt
.
Printf
(
"%s
\n
"
,
block
.
State
()
.
Dump
())
...
...
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