Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 0 additions & 28 deletions execution/core/blocks.go

This file was deleted.

23 changes: 0 additions & 23 deletions execution/stages/blockchain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ package stages_test
import (
"context"
"encoding/binary"
"errors"
"fmt"
"maps"
"math"
Expand Down Expand Up @@ -425,28 +424,6 @@ func testReorg(t *testing.T, first, second []int64, td int64) {
}
}

// Tests that the insertion functions detect banned hashes.
func TestBadBlockHashes(t *testing.T) { testBadHashes(t) }

func testBadHashes(t *testing.T) {
t.Parallel()
t.Skip("to support this error in Erigon")
// Create a pristine chain and database
m := newCanonical(t, 0)
var err error

// Create a chain, ban a hash and try to import
chain := makeBlockChain(current(m, nil), 3, m, 10)

core.BadHashes[chain.Headers[2].Hash()] = true
defer func() { delete(core.BadHashes, chain.Headers[2].Hash()) }()

err = m.InsertChain(chain)
if !errors.Is(err, core.ErrBlacklistedHash) {
t.Errorf("error mismatch: have: %v, want: %v", err, core.ErrBlacklistedHash)
}
}

// Tests that chain reorganisations handle transaction removals and reinsertions.
func TestChainTxReorgs(t *testing.T) {
if testing.Short() {
Expand Down
Loading