aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Halpern <matthalp@google.com>2019-02-18 19:27:31 +0800
committerPéter Szilágyi <peterke@gmail.com>2019-02-18 19:27:31 +0800
commit3930f3795b6e46ce9104cf1bbfd2bdd4f2e605b3 (patch)
tree3cf359d0b7a0d57d8b5a8005fea82006a5dd41a6
parenta1f366ecf6a316d55422906172844df3ab5f7047 (diff)
downloadgo-tangerine-3930f3795b6e46ce9104cf1bbfd2bdd4f2e605b3.tar
go-tangerine-3930f3795b6e46ce9104cf1bbfd2bdd4f2e605b3.tar.gz
go-tangerine-3930f3795b6e46ce9104cf1bbfd2bdd4f2e605b3.tar.bz2
go-tangerine-3930f3795b6e46ce9104cf1bbfd2bdd4f2e605b3.tar.lz
go-tangerine-3930f3795b6e46ce9104cf1bbfd2bdd4f2e605b3.tar.xz
go-tangerine-3930f3795b6e46ce9104cf1bbfd2bdd4f2e605b3.tar.zst
go-tangerine-3930f3795b6e46ce9104cf1bbfd2bdd4f2e605b3.zip
core: remove unused function (#19097)
-rw-r--r--core/blockchain_test.go17
1 files changed, 0 insertions, 17 deletions
diff --git a/core/blockchain_test.go b/core/blockchain_test.go
index fa68c2894..0372a9848 100644
--- a/core/blockchain_test.go
+++ b/core/blockchain_test.go
@@ -17,7 +17,6 @@
package core
import (
- "fmt"
"math/big"
"math/rand"
"sync"
@@ -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 {
@@ -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 {