mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +00:00
Update Test for blockchain.go
- TestBlocksHashCacheUpdate - TestAreTwoBlocksSamePath Collection test for BlocksHashCache cases 1. When init new chain 2. when insertChain 3. when insertFork 4. When adding new block by mining 5. When adding new block by syncing with other nodes
This commit is contained in:
parent
adf071665a
commit
18bfb102b4
1 changed files with 3 additions and 2 deletions
|
|
@ -18,13 +18,14 @@ package core
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/XinFinOrg/XDPoSChain/core/rawdb"
|
||||
"math/big"
|
||||
"math/rand"
|
||||
"sync"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/XinFinOrg/XDPoSChain/core/rawdb"
|
||||
|
||||
"github.com/XinFinOrg/XDPoSChain/common"
|
||||
"github.com/XinFinOrg/XDPoSChain/consensus/ethash"
|
||||
"github.com/XinFinOrg/XDPoSChain/core/state"
|
||||
|
|
@ -1323,7 +1324,7 @@ func TestLargeReorgTrieGC(t *testing.T) {
|
|||
}
|
||||
|
||||
/*
|
||||
Collection test for BlochsHashCache
|
||||
Collection test for BlocksHashCache
|
||||
cases
|
||||
1. When init new chain
|
||||
2. when insertChain
|
||||
|
|
|
|||
Loading…
Reference in a new issue