mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 13:46:43 +00:00
Reset testTxHashes before generating new test chain to ensure test isolation
This commit is contained in:
parent
b992b105ef
commit
cc34d9249f
1 changed files with 1 additions and 0 deletions
|
|
@ -86,6 +86,7 @@ func newTestBackend(t *testing.T) (*node.Node, []*types.Block) {
|
|||
}
|
||||
|
||||
func generateTestChain() (*core.Genesis, []*types.Block) {
|
||||
testTxHashes = nil // reset before generating a new chain
|
||||
genesis := &core.Genesis{
|
||||
Config: params.AllEthashProtocolChanges,
|
||||
Alloc: types.GenesisAlloc{
|
||||
|
|
|
|||
Loading…
Reference in a new issue