Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
whqwjb
go-ethereum
提交
098f7f23
G
go-ethereum
项目概览
whqwjb
/
go-ethereum
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
go-ethereum
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
098f7f23
编写于
6月 29, 2014
作者:
Z
zelig
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
changed name for ethutil hex functions; and access to keyring via keyManager
上级
8aea4687
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
8 addition
and
8 deletion
+8
-8
ethereal/ui/debugger.go
ethereal/ui/debugger.go
+2
-2
ethereal/ui/ext_app.go
ethereal/ui/ext_app.go
+2
-2
ethereal/ui/html_container.go
ethereal/ui/html_container.go
+1
-1
ethereal/ui/qml_app.go
ethereal/ui/qml_app.go
+1
-1
ethereal/ui/ui_lib.go
ethereal/ui/ui_lib.go
+2
-2
未找到文件。
ethereal/ui/debugger.go
浏览文件 @
098f7f23
...
...
@@ -49,7 +49,7 @@ func (self *DebuggerWindow) SetData(data string) {
self
.
win
.
Set
(
"dataText"
,
data
)
}
func
(
self
*
DebuggerWindow
)
SetAsm
(
data
string
)
{
dis
:=
ethchain
.
Disassemble
(
ethutil
.
FromHex
(
data
))
dis
:=
ethchain
.
Disassemble
(
ethutil
.
Hex2Bytes
(
data
))
for
_
,
str
:=
range
dis
{
self
.
win
.
Root
()
.
Call
(
"setAsm"
,
str
)
}
...
...
@@ -101,7 +101,7 @@ func (self *DebuggerWindow) Debug(valueStr, gasStr, gasPriceStr, scriptStr, data
gasPrice
=
ethutil
.
Big
(
gasPriceStr
)
value
=
ethutil
.
Big
(
valueStr
)
// Contract addr as test address
keyPair
=
ethutil
.
GetKeyRing
()
.
Get
(
0
)
keyPair
=
self
.
lib
.
eth
.
KeyManager
()
.
KeyPair
(
)
callerTx
=
ethchain
.
NewContractCreationTx
(
ethutil
.
Big
(
valueStr
),
gas
,
gasPrice
,
script
)
)
callerTx
.
Sign
(
keyPair
.
PrivateKey
)
...
...
ethereal/ui/ext_app.go
浏览文件 @
098f7f23
...
...
@@ -121,10 +121,10 @@ out:
func
(
app
*
ExtApplication
)
Watch
(
addr
,
storageAddr
string
)
{
var
event
string
if
len
(
storageAddr
)
==
0
{
event
=
"object:"
+
string
(
ethutil
.
FromHex
(
addr
))
event
=
"object:"
+
string
(
ethutil
.
Hex2Bytes
(
addr
))
app
.
lib
.
eth
.
Reactor
()
.
Subscribe
(
event
,
app
.
changeChan
)
}
else
{
event
=
"storage:"
+
string
(
ethutil
.
FromHex
(
addr
))
+
":"
+
string
(
ethutil
.
FromHex
(
storageAddr
))
event
=
"storage:"
+
string
(
ethutil
.
Hex2Bytes
(
addr
))
+
":"
+
string
(
ethutil
.
Hex2Bytes
(
storageAddr
))
app
.
lib
.
eth
.
Reactor
()
.
Subscribe
(
event
,
app
.
changeChan
)
}
...
...
ethereal/ui/html_container.go
浏览文件 @
098f7f23
...
...
@@ -116,7 +116,7 @@ func (app *HtmlApplication) Window() *qml.Window {
}
func
(
app
*
HtmlApplication
)
NewBlock
(
block
*
ethchain
.
Block
)
{
b
:=
&
ethpub
.
PBlock
{
Number
:
int
(
block
.
BlockInfo
()
.
Number
),
Hash
:
ethutil
.
Hex
(
block
.
Hash
())}
b
:=
&
ethpub
.
PBlock
{
Number
:
int
(
block
.
BlockInfo
()
.
Number
),
Hash
:
ethutil
.
Bytes2
Hex
(
block
.
Hash
())}
app
.
webView
.
Call
(
"onNewBlockCb"
,
b
)
}
...
...
ethereal/ui/qml_app.go
浏览文件 @
098f7f23
...
...
@@ -38,7 +38,7 @@ func (app *QmlApplication) NewWatcher(quitChan chan bool) {
// Events
func
(
app
*
QmlApplication
)
NewBlock
(
block
*
ethchain
.
Block
)
{
pblock
:=
&
ethpub
.
PBlock
{
Number
:
int
(
block
.
BlockInfo
()
.
Number
),
Hash
:
ethutil
.
Hex
(
block
.
Hash
())}
pblock
:=
&
ethpub
.
PBlock
{
Number
:
int
(
block
.
BlockInfo
()
.
Number
),
Hash
:
ethutil
.
Bytes2
Hex
(
block
.
Hash
())}
app
.
win
.
Call
(
"onNewBlockCb"
,
pblock
)
}
...
...
ethereal/ui/ui_lib.go
浏览文件 @
098f7f23
...
...
@@ -77,9 +77,9 @@ func (ui *UiLib) AssetPath(p string) string {
func
(
self
*
UiLib
)
StartDbWithContractAndData
(
contractHash
,
data
string
)
{
dbWindow
:=
NewDebuggerWindow
(
self
)
object
:=
self
.
eth
.
StateManager
()
.
CurrentState
()
.
GetStateObject
(
ethutil
.
FromHex
(
contractHash
))
object
:=
self
.
eth
.
StateManager
()
.
CurrentState
()
.
GetStateObject
(
ethutil
.
Hex2Bytes
(
contractHash
))
if
len
(
object
.
Script
())
>
0
{
dbWindow
.
SetCode
(
"0x"
+
ethutil
.
Hex
(
object
.
Script
()))
dbWindow
.
SetCode
(
"0x"
+
ethutil
.
Bytes2
Hex
(
object
.
Script
()))
}
dbWindow
.
SetData
(
"0x"
+
data
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录