From 9c376a4055e95d48dd769ea5fbf9f93f836403f0 Mon Sep 17 00:00:00 2001 From: healthykim Date: Tue, 12 May 2026 12:20:57 +0200 Subject: [PATCH] core/txpool/blobpool: rename ApplySidecar --- core/txpool/blobpool/blobpool.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/txpool/blobpool/blobpool.go b/core/txpool/blobpool/blobpool.go index 5aa3bd0d96..7933ddfc42 100644 --- a/core/txpool/blobpool/blobpool.go +++ b/core/txpool/blobpool/blobpool.go @@ -162,8 +162,8 @@ func (ptx *blobTxForPool) Sidecar() *types.BlobTxSidecar { return types.NewBlobTxSidecar(ptx.Version, ptx.Blobs, ptx.Commitments, ptx.Proofs) } -// WithSidecar copies the sidecar's fields into the flat fields. -func (ptx *blobTxForPool) WithSidecar(sc *types.BlobTxSidecar) { +// ApplySidecar copies the sidecar's fields into the flat fields. +func (ptx *blobTxForPool) ApplySidecar(sc *types.BlobTxSidecar) { ptx.Version = sc.Version ptx.Commitments = sc.Commitments ptx.Proofs = sc.Proofs @@ -1279,7 +1279,7 @@ func (p *BlobPool) reinject(addr common.Address, txhash common.Hash) error { log.Error("Failed to convert the legacy sidecar", "err", err) return err } - ptx.WithSidecar(sc) + ptx.ApplySidecar(sc) log.Info("Legacy blob transaction is reorged", "hash", ptx.Tx.Hash()) } blob, err := rlp.EncodeToBytes(ptx)