eth, tests: fix test

This commit is contained in:
healthykim 2026-06-16 16:12:36 +02:00
parent 6ce938c2a4
commit cc0112aee0
2 changed files with 14 additions and 13 deletions

View file

@ -93,11 +93,11 @@ type txFetcherTest struct {
// newTestBlobBuffer returns a BlobBuffer with no-op callbacks for tests that // newTestBlobBuffer returns a BlobBuffer with no-op callbacks for tests that
// don't exercise blob handling but still need a non-nil buffer. // don't exercise blob handling but still need a non-nil buffer.
func newTestBlobBuffer() *blobpool.BlobBuffer { func newTestBlobBuffer() *blobpool.BlobBuffer {
return blobpool.NewBlobBuffer( return blobpool.NewBlobBuffer(blobpool.BlobBufferFunctions{
func(*types.Transaction) error { return nil }, ValidateTx: func(*types.Transaction) error { return nil },
func(*blobpool.BlobTxForPool) error { return nil }, AddToPool: func(*blobpool.BlobTxForPool) error { return nil },
func(string) {}, DropPeer: func(string) {},
) })
} }
// newTestTxFetcher creates a tx fetcher with noop callbacks, simulated clock, // newTestTxFetcher creates a tx fetcher with noop callbacks, simulated clock,

View file

@ -91,11 +91,12 @@ func fuzz(input []byte) int {
}, },
func(string, []common.Hash) error { return nil }, func(string, []common.Hash) error { return nil },
nil, nil,
blobpool.NewBlobBuffer(
func(*types.Transaction) error { return nil }, blobpool.NewBlobBuffer(blobpool.BlobBufferFunctions{
func(*blobpool.BlobTxForPool) error { return nil }, ValidateTx: func(*types.Transaction) error { return nil },
func(string) {}, AddToPool: func(*blobpool.BlobTxForPool) error { return nil },
), DropPeer: func(string) {},
}),
clock, clock,
func() time.Time { func() time.Time {
nanoTime := int64(clock.Now()) nanoTime := int64(clock.Now())