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:
olumuyiwadad 2021-11-08 15:41:13 +05:30
parent adf071665a
commit 18bfb102b4

View file

@ -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