Skip to content

Commit

Permalink
core: remove unused function (ethereum#19097)
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthalp-zz authored and karalabe committed Feb 18, 2019
1 parent a1f366e commit 3930f37
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions core/blockchain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
package core

import (
"fmt"
"math/big"
"math/rand"
"sync"
Expand Down Expand Up @@ -126,13 +125,6 @@ func testFork(t *testing.T, blockchain *BlockChain, i, n int, full bool, compara
comparator(tdPre, tdPost)
}

func printChain(bc *BlockChain) {
for i := bc.CurrentBlock().Number().Uint64(); i > 0; i-- {
b := bc.GetBlockByNumber(uint64(i))
fmt.Printf("\t%x %v\n", b.Hash(), b.Difficulty())
}
}

// testBlockChainImport tries to process a chain of blocks, writing them into
// the database if successful.
func testBlockChainImport(chain types.Blocks, blockchain *BlockChain) error {
Expand Down Expand Up @@ -188,15 +180,6 @@ func testHeaderChainImport(chain []*types.Header, blockchain *BlockChain) error
return nil
}

func insertChain(done chan bool, blockchain *BlockChain, chain types.Blocks, t *testing.T) {
_, err := blockchain.InsertChain(chain)
if err != nil {
fmt.Println(err)
t.FailNow()
}
done <- true
}

func TestLastBlock(t *testing.T) {
_, blockchain, err := newCanonical(ethash.NewFaker(), 0, true)
if err != nil {
Expand Down

0 comments on commit 3930f37

Please sign in to comment.