mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 21:56:43 +00:00
eth, tests: fix test
This commit is contained in:
parent
6ce938c2a4
commit
cc0112aee0
2 changed files with 14 additions and 13 deletions
|
|
@ -93,11 +93,11 @@ type txFetcherTest struct {
|
|||
// newTestBlobBuffer returns a BlobBuffer with no-op callbacks for tests that
|
||||
// don't exercise blob handling but still need a non-nil buffer.
|
||||
func newTestBlobBuffer() *blobpool.BlobBuffer {
|
||||
return blobpool.NewBlobBuffer(
|
||||
func(*types.Transaction) error { return nil },
|
||||
func(*blobpool.BlobTxForPool) error { return nil },
|
||||
func(string) {},
|
||||
)
|
||||
return blobpool.NewBlobBuffer(blobpool.BlobBufferFunctions{
|
||||
ValidateTx: func(*types.Transaction) error { return nil },
|
||||
AddToPool: func(*blobpool.BlobTxForPool) error { return nil },
|
||||
DropPeer: func(string) {},
|
||||
})
|
||||
}
|
||||
|
||||
// newTestTxFetcher creates a tx fetcher with noop callbacks, simulated clock,
|
||||
|
|
|
|||
|
|
@ -91,11 +91,12 @@ func fuzz(input []byte) int {
|
|||
},
|
||||
func(string, []common.Hash) error { return nil },
|
||||
nil,
|
||||
blobpool.NewBlobBuffer(
|
||||
func(*types.Transaction) error { return nil },
|
||||
func(*blobpool.BlobTxForPool) error { return nil },
|
||||
func(string) {},
|
||||
),
|
||||
|
||||
blobpool.NewBlobBuffer(blobpool.BlobBufferFunctions{
|
||||
ValidateTx: func(*types.Transaction) error { return nil },
|
||||
AddToPool: func(*blobpool.BlobTxForPool) error { return nil },
|
||||
DropPeer: func(string) {},
|
||||
}),
|
||||
clock,
|
||||
func() time.Time {
|
||||
nanoTime := int64(clock.Now())
|
||||
|
|
|
|||
Loading…
Reference in a new issue