Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
whqwjb
go-ethereum
提交
c3621725
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,发现更多精彩内容 >>
提交
c3621725
编写于
8月 15, 2014
作者:
O
obscuren
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Got rid of warnings and updated storage getters
上级
aadc5be3
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
24 addition
and
20 deletion
+24
-20
ethereal/assets/ext/ethereum.js
ethereal/assets/ext/ethereum.js
+6
-6
ethereal/assets/ext/test.html
ethereal/assets/ext/test.html
+3
-0
ethereal/assets/qml/webapp.qml
ethereal/assets/qml/webapp.qml
+1
-1
ethereal/ext_app.go
ethereal/ext_app.go
+1
-1
ethereal/gui.go
ethereal/gui.go
+1
-1
javascript/javascript_runtime.go
javascript/javascript_runtime.go
+1
-1
utils/cmd.go
utils/cmd.go
+11
-10
未找到文件。
ethereal/assets/ext/ethereum.js
浏览文件 @
c3621725
// Main Ethereum library
window
.
eth
=
{
prototype
:
Object
(),
_callbacks
:
{},
_onCallbacks
:
{},
mutan
:
function
(
code
)
{
},
...
...
@@ -103,8 +105,8 @@ window.eth = {
postData
({
call
:
"
getStorage
"
,
args
:
[
address
,
storageAddress
]},
cb
);
},
get
StateKeyVals
:
function
(
address
,
cb
){
postData
({
call
:
"
get
StateKeyVals
"
,
args
:
[
address
]},
cb
);
get
EachStorageAt
:
function
(
address
,
cb
){
postData
({
call
:
"
get
EachStorage
"
,
args
:
[
address
]},
cb
);
},
getKey
:
function
(
cb
)
{
...
...
@@ -221,17 +223,15 @@ window.eth = {
},
}
window
.
eth
.
_callbacks
=
{}
window
.
eth
.
_onCallbacks
=
{}
var
Filter
=
function
(
options
)
{
this
.
options
=
options
;
};
Filter
.
prototype
.
changed
=
function
(
callback
)
{
// Register the watched:<number>. Qml will call the appropriate event if anything
// interesting happens in the land of Go.
eth
.
on
(
"
watched:
"
+
this
.
number
,
callback
)
}
Filter
.
prototype
.
getMessages
=
function
(
cb
)
{
return
eth
.
getMessages
(
this
.
options
,
cb
)
}
...
...
ethereal/assets/ext/test.html
浏览文件 @
c3621725
...
...
@@ -22,6 +22,9 @@ function test() {
console
.
log
(
"
getMessages
"
,
messages
)
});
eth
.
getEachStorageAt
(
"
9ef0f0d81e040012600b0c1abdef7c48f720f88a
"
,
function
(
a
,
b
)
{
console
.
log
(
a
,
b
)
})
}
</script>
...
...
ethereal/assets/qml/webapp.qml
浏览文件 @
c3621725
...
...
@@ -193,7 +193,7 @@ ApplicationWindow {
break
case
"
get
StateKeyVals
"
:
case
"
get
EachStorage
"
:
require
(
1
);
var
stateObject
=
eth
.
getStateObject
(
data
.
args
[
0
]).
stateKeyVal
(
true
)
postData
(
data
.
_seed
,
stateObject
)
...
...
ethereal/ext_app.go
浏览文件 @
c3621725
...
...
@@ -44,7 +44,7 @@ type ExtApplication struct {
func
NewExtApplication
(
container
AppContainer
,
lib
*
UiLib
)
*
ExtApplication
{
app
:=
&
ExtApplication
{
ethpub
.
New
PEthereum
(
lib
.
eth
),
ethpub
.
New
(
lib
.
eth
),
lib
.
eth
,
make
(
chan
ethreact
.
Event
,
100
),
make
(
chan
ethreact
.
Event
,
100
),
...
...
ethereal/gui.go
浏览文件 @
c3621725
...
...
@@ -57,7 +57,7 @@ func NewWindow(ethereum *eth.Ethereum, config *ethutil.ConfigManager, clientIden
panic
(
err
)
}
pub
:=
ethpub
.
New
PEthereum
(
ethereum
)
pub
:=
ethpub
.
New
(
ethereum
)
return
&
Gui
{
eth
:
ethereum
,
txDb
:
db
,
pub
:
pub
,
logLevel
:
ethlog
.
LogLevel
(
logLevel
),
Session
:
session
,
open
:
false
,
clientIdentity
:
clientIdentity
,
config
:
config
}
}
...
...
javascript/javascript_runtime.go
浏览文件 @
c3621725
...
...
@@ -50,7 +50,7 @@ func NewJSRE(ethereum *eth.Ethereum) *JSRE {
re
:=
&
JSRE
{
ethereum
,
otto
.
New
(),
ethpub
.
New
PEthereum
(
ethereum
),
ethpub
.
New
(
ethereum
),
make
(
chan
ethreact
.
Event
,
10
),
make
(
chan
ethreact
.
Event
,
10
),
make
(
chan
bool
),
...
...
utils/cmd.go
浏览文件 @
c3621725
package
utils
import
(
"bitbucket.org/kardianos/osext"
"fmt"
"io"
"log"
"os"
"os/signal"
"path"
"path/filepath"
"runtime"
"time"
"bitbucket.org/kardianos/osext"
"github.com/ethereum/eth-go"
"github.com/ethereum/eth-go/ethcrypto"
"github.com/ethereum/eth-go/ethdb"
...
...
@@ -12,14 +21,6 @@ import (
"github.com/ethereum/eth-go/ethrpc"
"github.com/ethereum/eth-go/ethutil"
"github.com/ethereum/eth-go/ethwire"
"io"
"log"
"os"
"os/signal"
"path"
"path/filepath"
"runtime"
"time"
)
var
logger
=
ethlog
.
NewLogger
(
"CLI"
)
...
...
@@ -227,7 +228,7 @@ func KeyTasks(keyManager *ethcrypto.KeyManager, KeyRing string, GenAddr bool, Se
func
StartRpc
(
ethereum
*
eth
.
Ethereum
,
RpcPort
int
)
{
var
err
error
ethereum
.
RpcServer
,
err
=
ethrpc
.
NewJsonRpcServer
(
ethpub
.
New
PEthereum
(
ethereum
),
RpcPort
)
ethereum
.
RpcServer
,
err
=
ethrpc
.
NewJsonRpcServer
(
ethpub
.
New
(
ethereum
),
RpcPort
)
if
err
!=
nil
{
logger
.
Errorf
(
"Could not start RPC interface (port %v): %v"
,
RpcPort
,
err
)
}
else
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录