remove outdated todos

This commit is contained in:
healthykim 2026-05-22 14:55:08 +02:00
parent c841457587
commit 4bc885e809
4 changed files with 3 additions and 13 deletions

View file

@ -1499,7 +1499,7 @@ func (p *BlobPool) ValidateTxBasics(tx *types.Transaction) error {
Accept: 1 << types.BlobTxType, Accept: 1 << types.BlobTxType,
MaxSize: txMaxSize, MaxSize: txMaxSize,
MinTip: p.gasTip.Load().ToBig(), MinTip: p.gasTip.Load().ToBig(),
MaxBlobCount: maxBlobsPerTx, //todo this field is currently not being used MaxBlobCount: maxBlobsPerTx,
} }
return txpool.ValidateTransaction(tx, p.head.Load(), p.signer, opts) return txpool.ValidateTransaction(tx, p.head.Load(), p.signer, opts)
} }

View file

@ -32,7 +32,6 @@ import (
"github.com/ethereum/go-ethereum/metrics" "github.com/ethereum/go-ethereum/metrics"
) )
// todo: per-peer size limit
var ( var (
blobBufferTxFirstCounter = metrics.NewRegisteredCounter("blobpool/buffer/txfirst", nil) blobBufferTxFirstCounter = metrics.NewRegisteredCounter("blobpool/buffer/txfirst", nil)
blobBufferCellsFirstCounter = metrics.NewRegisteredCounter("blobpool/buffer/cellsfirst", nil) blobBufferCellsFirstCounter = metrics.NewRegisteredCounter("blobpool/buffer/cellsfirst", nil)

View file

@ -28,8 +28,6 @@ import (
"github.com/ethereum/go-ethereum/crypto/kzg4844" "github.com/ethereum/go-ethereum/crypto/kzg4844"
) )
// todo remove partial / full
type random interface { type random interface {
Intn(n int) int Intn(n int) int
} }
@ -39,8 +37,6 @@ type random interface {
// For availability checks, it fetches cells from each blob in the transaction // For availability checks, it fetches cells from each blob in the transaction
// according to the custody cell indices provided by the consensus client // according to the custody cell indices provided by the consensus client
// connected to this execution client. // connected to this execution client.
// todo
var blobFetchTimeout = 5 * time.Second var blobFetchTimeout = 5 * time.Second
var blobAvailabilityTimeout = 2 * time.Second var blobAvailabilityTimeout = 2 * time.Second
@ -138,9 +134,8 @@ type BlobFetcher struct {
// Buffer 2 // Buffer 2
// Stage 3: Transactions whose payloads/cells are currently being fetched (full fetch + partial fetch) // Stage 3: Transactions whose payloads/cells are currently being fetched (full fetch + partial fetch)
fetches map[common.Hash]*fetchStatus // Hash -> Bitmap, in-flight transaction cells fetches map[common.Hash]*fetchStatus // Hash -> Bitmap, in-flight transaction cells
requests map[string][]*cellRequest // In-flight transaction retrievals requests map[string][]*cellRequest // In-flight transaction retrievals
// todo simplify
alternates map[common.Hash]map[string]*types.CustodyBitmap // In-flight transaction alternate origins (in case the peer is dropped) alternates map[common.Hash]map[string]*types.CustodyBitmap // In-flight transaction alternate origins (in case the peer is dropped)
fn BlobFetcherFunctions // callbacks fn BlobFetcherFunctions // callbacks

View file

@ -330,9 +330,6 @@ func TestBlobFetcherPartialFetch(t *testing.T) {
}) })
} }
// todo wait timeout
// todo drop
// TestBlobFetcherFullDelivery tests cell delivery and fetch completion logic (full fetch) // TestBlobFetcherFullDelivery tests cell delivery and fetch completion logic (full fetch)
func TestBlobFetcherFullDelivery(t *testing.T) { func TestBlobFetcherFullDelivery(t *testing.T) {
testBlobFetcher(t, blobFetcherTest{ testBlobFetcher(t, blobFetcherTest{
@ -809,7 +806,6 @@ func testBlobFetcher(t *testing.T, tt blobFetcherTest) {
} }
case isBlobScheduled: case isBlobScheduled:
// todo fetches
// Check tracking (announces) - bidirectional verification // Check tracking (announces) - bidirectional verification
for peer, announces := range step.announces { for peer, announces := range step.announces {
peerAnnounces := fetcher.announces[peer] peerAnnounces := fetcher.announces[peer]