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
60de4d6d
Commit
60de4d6d
authored
Mar 20, 2015
by
Gustav Simonsson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gofmt
parent
08bb472c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
blocktest.go
cmd/ethereum/blocktest.go
+1
-1
blocktest.go
tests/blocktest.go
+2
-4
No files found.
cmd/ethereum/blocktest.go
View file @
60de4d6d
...
...
@@ -5,9 +5,9 @@ import (
"github.com/codegangsta/cli"
"github.com/ethereum/go-ethereum/cmd/utils"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/eth"
"github.com/ethereum/go-ethereum/ethdb"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/tests"
)
...
...
tests/blocktest.go
View file @
60de4d6d
...
...
@@ -134,9 +134,9 @@ func (t *BlockTest) ValidatePostState(statedb *state.StateDB) error {
nonce
,
_
:=
strconv
.
ParseUint
(
acct
.
Nonce
,
16
,
64
)
// address is indirectly verified by the other fields, as it's the db key
code2
:=
statedb
.
GetCode
(
addr
)
code2
:=
statedb
.
GetCode
(
addr
)
balance2
:=
statedb
.
GetBalance
(
addr
)
nonce2
:=
statedb
.
GetNonce
(
addr
)
nonce2
:=
statedb
.
GetNonce
(
addr
)
if
!
bytes
.
Equal
(
code2
,
code
)
{
return
fmt
.
Errorf
(
"account code mismatch, addr, found, expected: "
,
addrString
,
hex
.
EncodeToString
(
code2
),
hex
.
EncodeToString
(
code
))
}
...
...
@@ -146,8 +146,6 @@ func (t *BlockTest) ValidatePostState(statedb *state.StateDB) error {
if
nonce2
!=
nonce
{
return
fmt
.
Errorf
(
"account nonce mismatch, addr, found, expected: "
,
addrString
,
nonce2
,
nonce
)
}
>>>>>>>
Add
validation
of
post
state
accounts
to
block
tests
}
return
nil
}
...
...
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