core/txpool/blobpool: rename ApplySidecar

This commit is contained in:
healthykim 2026-05-12 12:20:57 +02:00
parent 296c236cec
commit 9c376a4055

View file

@ -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)