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
8c8554f5
Commit
8c8554f5
authored
Feb 18, 2014
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added license name and updated block output from the dev console
parent
5257c25e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
LICENSE
LICENSE
+1
-1
dev_console.go
dev_console.go
+2
-1
No files found.
LICENSE
View file @
8c8554f5
The MIT License (MIT)
The MIT License (MIT)
Copyright (c) 2013
Geff Obscura
Copyright (c) 2013
Jeffrey Wilcke
Permission is hereby granted, free of charge, to any person obtaining a copy
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
of this software and associated documentation files (the "Software"), to deal
...
...
dev_console.go
View file @
8c8554f5
...
@@ -136,7 +136,8 @@ func (i *Console) ParseInput(input string) bool {
...
@@ -136,7 +136,8 @@ func (i *Console) ParseInput(input string) bool {
case
"block"
:
case
"block"
:
encoded
,
_
:=
hex
.
DecodeString
(
tokens
[
1
])
encoded
,
_
:=
hex
.
DecodeString
(
tokens
[
1
])
block
:=
i
.
ethereum
.
BlockManager
.
BlockChain
()
.
GetBlock
(
encoded
)
block
:=
i
.
ethereum
.
BlockManager
.
BlockChain
()
.
GetBlock
(
encoded
)
fmt
.
Println
(
block
)
info
:=
block
.
BlockInfo
()
fmt
.
Printf
(
"++++++++++ #%d ++++++++++
\n
%v
\n
"
,
info
.
Number
,
block
)
case
"say"
:
case
"say"
:
i
.
ethereum
.
Broadcast
(
ethwire
.
MsgTalkTy
,
[]
interface
{}{
tokens
[
1
]})
i
.
ethereum
.
Broadcast
(
ethwire
.
MsgTalkTy
,
[]
interface
{}{
tokens
[
1
]})
case
"addp"
:
case
"addp"
:
...
...
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