Skip to content

Commit 3930f37

Browse files
Matthalp-zzkaralabe
authored andcommitted
core: remove unused function (#19097)
1 parent a1f366e commit 3930f37

1 file changed

Lines changed: 0 additions & 17 deletions

File tree

‎core/blockchain_test.go‎

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
package core
1818

1919
import (
20-
"fmt"
2120
"math/big"
2221
"math/rand"
2322
"sync"
@@ -126,13 +125,6 @@ func testFork(t *testing.T, blockchain *BlockChain, i, n int, full bool, compara
126125
comparator(tdPre, tdPost)
127126
}
128127

129-
func printChain(bc *BlockChain) {
130-
for i := bc.CurrentBlock().Number().Uint64(); i > 0; i-- {
131-
b := bc.GetBlockByNumber(uint64(i))
132-
fmt.Printf("\t%x %v\n", b.Hash(), b.Difficulty())
133-
}
134-
}
135-
136128
// testBlockChainImport tries to process a chain of blocks, writing them into
137129
// the database if successful.
138130
func testBlockChainImport(chain types.Blocks, blockchain *BlockChain) error {
@@ -188,15 +180,6 @@ func testHeaderChainImport(chain []*types.Header, blockchain *BlockChain) error
188180
return nil
189181
}
190182

191-
func insertChain(done chan bool, blockchain *BlockChain, chain types.Blocks, t *testing.T) {
192-
_, err := blockchain.InsertChain(chain)
193-
if err != nil {
194-
fmt.Println(err)
195-
t.FailNow()
196-
}
197-
done <- true
198-
}
199-
200183
func TestLastBlock(t *testing.T) {
201184
_, blockchain, err := newCanonical(ethash.NewFaker(), 0, true)
202185
if err != nil {

0 commit comments

Comments
 (0)