Merge pull request #867 from Gustav-Simonsson/fix_block_tests_genesis_block_total_difficulty

Fix block tests genesis block total difficulty
This commit is contained in:
Jeffrey Wilcke 2015-05-06 14:52:55 -07:00
commit 82ac4712f1
3 changed files with 1 additions and 4 deletions

View File

@ -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)
}

View File

@ -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)

View File

@ -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)
}