Reset testTxHashes before generating new test chain to ensure test isolation

This commit is contained in:
Galoretka 2025-07-13 20:47:01 +03:00 committed by GitHub
parent b992b105ef
commit cc34d9249f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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