diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-05-07 05:52:55 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-05-07 05:52:55 +0800 |
commit | 82ac4712f17d69e6fa90949357ba0d97a3d8a770 (patch) | |
tree | 5119bda97c715ef005a876059468bab8593e5774 | |
parent | a0cb1945aeac215b1909ff0063b66171ebe73c70 (diff) | |
parent | 7bc1f487b866ed29b046a83a9c3bf4c5c839507c (diff) | |
download | dexon-82ac4712f17d69e6fa90949357ba0d97a3d8a770.tar dexon-82ac4712f17d69e6fa90949357ba0d97a3d8a770.tar.gz dexon-82ac4712f17d69e6fa90949357ba0d97a3d8a770.tar.bz2 dexon-82ac4712f17d69e6fa90949357ba0d97a3d8a770.tar.lz dexon-82ac4712f17d69e6fa90949357ba0d97a3d8a770.tar.xz dexon-82ac4712f17d69e6fa90949357ba0d97a3d8a770.tar.zst dexon-82ac4712f17d69e6fa90949357ba0d97a3d8a770.zip |
Merge pull request #867 from Gustav-Simonsson/fix_block_tests_genesis_block_total_difficulty
Fix block tests genesis block total difficulty
-rw-r--r-- | cmd/geth/blocktest.go | 1 | ||||
-rw-r--r-- | core/chain_manager.go | 1 | ||||
-rw-r--r-- | tests/block_test.go | 3 |
3 files changed, 1 insertions, 4 deletions
diff --git a/cmd/geth/blocktest.go b/cmd/geth/blocktest.go index 5c80ad07e..81a64b5f2 100644 --- a/cmd/geth/blocktest.go +++ b/cmd/geth/blocktest.go @@ -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) } diff --git a/core/chain_manager.go b/core/chain_manager.go index 29830188e..0837c85be 100644 --- a/core/chain_manager.go +++ b/core/chain_manager.go @@ -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) diff --git a/tests/block_test.go b/tests/block_test.go index 2cf2da75c..8b1f76a92 100644 --- a/tests/block_test.go +++ b/tests/block_test.go @@ -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) } |