Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
3930f379
Commit
3930f379
authored
6 years ago
by
Matthew Halpern
Committed by
Péter Szilágyi
6 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core: remove unused function (#19097)
parent
a1f366ec
master
v1.10.12
v1.10.12-modified
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
17 deletions
+0
-17
blockchain_test.go
core/blockchain_test.go
+0
-17
No files found.
core/blockchain_test.go
View file @
3930f379
...
...
@@ -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
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment