Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
whqwjb
go-ethereum
提交
421df866
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,体验更适合开发者的 AI 搜索 >>
提交
421df866
编写于
9月 19, 2016
作者:
P
Péter Szilágyi
提交者:
GitHub
9月 19, 2016
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #3007 from karalabe/release/1.4
Geth 1.4.12: Shanghai with love
上级
fed692f6
dfc63c49
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
10 addition
and
7 deletion
+10
-7
VERSION
VERSION
+1
-1
cmd/geth/main.go
cmd/geth/main.go
+1
-1
core/state/state_object.go
core/state/state_object.go
+1
-1
core/state/state_test.go
core/state/state_test.go
+4
-2
core/state/statedb.go
core/state/statedb.go
+3
-2
未找到文件。
VERSION
浏览文件 @
421df866
1.4.1
1
1.4.1
2
cmd/geth/main.go
浏览文件 @
421df866
...
...
@@ -50,7 +50,7 @@ const (
clientIdentifier
=
"Geth"
// Client identifier to advertise over the network
versionMajor
=
1
// Major version component of the current release
versionMinor
=
4
// Minor version component of the current release
versionPatch
=
1
1
// Patch version component of the current release
versionPatch
=
1
2
// Patch version component of the current release
versionMeta
=
"stable"
// Version metadata to append to the version string
versionOracle
=
"0xfa7b9770ca4cb04296cac84f37736d4041251cdf"
// Ethereum address of the Geth release oracle
...
...
core/state/state_object.go
浏览文件 @
421df866
...
...
@@ -187,7 +187,7 @@ func (self *StateObject) Copy() *StateObject {
stateObject
.
codeHash
=
common
.
CopyBytes
(
self
.
codeHash
)
stateObject
.
nonce
=
self
.
nonce
stateObject
.
trie
=
self
.
trie
stateObject
.
code
=
common
.
CopyBytes
(
self
.
code
)
stateObject
.
code
=
self
.
code
stateObject
.
initCode
=
common
.
CopyBytes
(
self
.
initCode
)
stateObject
.
storage
=
self
.
storage
.
Copy
()
stateObject
.
remove
=
self
.
remove
...
...
core/state/state_test.go
浏览文件 @
421df866
...
...
@@ -149,10 +149,11 @@ func TestSnapshot2(t *testing.T) {
so0
.
balance
=
big
.
NewInt
(
42
)
so0
.
nonce
=
43
so0
.
SetCode
([]
byte
{
'c'
,
'a'
,
'f'
,
'e'
})
so0
.
remove
=
tru
e
so0
.
remove
=
fals
e
so0
.
deleted
=
false
so0
.
dirty
=
fals
e
so0
.
dirty
=
tru
e
state
.
SetStateObject
(
so0
)
state
.
Commit
()
// and one with deleted == true
so1
:=
state
.
GetStateObject
(
stateobjaddr1
)
...
...
@@ -173,6 +174,7 @@ func TestSnapshot2(t *testing.T) {
state
.
Set
(
snapshot
)
so0Restored
:=
state
.
GetStateObject
(
stateobjaddr0
)
so0Restored
.
GetState
(
storageaddr
)
so1Restored
:=
state
.
GetStateObject
(
stateobjaddr1
)
// non-deleted is equal (restored)
compareStateObjects
(
so0Restored
,
so0
,
t
)
...
...
core/state/statedb.go
浏览文件 @
421df866
...
...
@@ -324,7 +324,9 @@ func (self *StateDB) Copy() *StateDB {
state
,
_
:=
New
(
common
.
Hash
{},
self
.
db
)
state
.
trie
=
self
.
trie
for
k
,
stateObject
:=
range
self
.
stateObjects
{
state
.
stateObjects
[
k
]
=
stateObject
.
Copy
()
if
stateObject
.
dirty
{
state
.
stateObjects
[
k
]
=
stateObject
.
Copy
()
}
}
state
.
refund
.
Set
(
self
.
refund
)
...
...
@@ -364,7 +366,6 @@ func (s *StateDB) IntermediateRoot() common.Hash {
stateObject
.
Update
()
s
.
UpdateStateObject
(
stateObject
)
}
stateObject
.
dirty
=
false
}
}
return
s
.
trie
.
Hash
()
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录