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
82ac4712
Commit
82ac4712
authored
May 06, 2015
by
Jeffrey Wilcke
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #867 from Gustav-Simonsson/fix_block_tests_genesis_block_total_difficulty
Fix block tests genesis block total difficulty
parents
a0cb1945
7bc1f487
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
4 deletions
+1
-4
blocktest.go
cmd/geth/blocktest.go
+0
-1
chain_manager.go
core/chain_manager.go
+1
-0
block_test.go
tests/block_test.go
+0
-3
No files found.
cmd/geth/blocktest.go
View file @
82ac4712
...
...
@@ -113,7 +113,6 @@ func runOneBlockTest(ctx *cli.Context, test *tests.BlockTest) (*eth.Ethereum, er
return
ethereum
,
fmt
.
Errorf
(
"Block Test load error: %v"
,
err
)
}
fmt
.
Println
(
"chain loaded"
)
if
err
:=
test
.
ValidatePostState
(
statedb
);
err
!=
nil
{
return
ethereum
,
fmt
.
Errorf
(
"post state validation failed: %v"
,
err
)
}
...
...
core/chain_manager.go
View file @
82ac4712
...
...
@@ -320,6 +320,7 @@ func (bc *ChainManager) ResetWithGenesisBlock(gb *types.Block) {
}
// Prepare the genesis block
gb
.
Td
=
gb
.
Difficulty
()
bc
.
genesisBlock
=
gb
bc
.
write
(
bc
.
genesisBlock
)
bc
.
insert
(
bc
.
genesisBlock
)
...
...
tests/block_test.go
View file @
82ac4712
...
...
@@ -17,12 +17,10 @@ func TestBcValidBlockTests(t *testing.T) {
}
func
TestBcUncleTests
(
t
*
testing
.
T
)
{
t
.
Skip
(
"Skipped until https://github.com/ethereum/go-ethereum/pull/857 is merged."
)
runBlockTestsInFile
(
"files/BlockTests/bcUncleTest.json"
,
[]
string
{},
t
)
}
func
TestBcUncleHeaderValidityTests
(
t
*
testing
.
T
)
{
t
.
Skip
(
"Skipped until https://github.com/ethereum/go-ethereum/pull/857 is merged."
)
runBlockTestsInFile
(
"files/BlockTests/bcUncleHeaderValiditiy.json"
,
[]
string
{},
t
)
}
...
...
@@ -39,7 +37,6 @@ func TestBcJSAPITests(t *testing.T) {
}
func
TestBcRPCAPITests
(
t
*
testing
.
T
)
{
t
.
Skip
(
"Skipped until https://github.com/ethereum/go-ethereum/pull/857 is merged."
)
runBlockTestsInFile
(
"files/BlockTests/bcRPC_API_Test.json"
,
[]
string
{},
t
)
}
...
...
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