From 97a2919561c494969d03d200be69b394a0868b4a Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Thu, 8 Feb 2024 17:30:51 +0100 Subject: [PATCH] core/types: remove WithBlobTxSidecar --- core/types/transaction.go | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/core/types/transaction.go b/core/types/transaction.go index 4e361bc81f..9ec0199a03 100644 --- a/core/types/transaction.go +++ b/core/types/transaction.go @@ -424,26 +424,6 @@ func (tx *Transaction) BlobGasFeeCapIntCmp(other *big.Int) int { return tx.BlobGasFeeCap().Cmp(other) } -// WithBlobTxSidecar returns a copy of tx with the blob sidecar. -func (tx *Transaction) WithBlobTxSidecar(sidecar *BlobTxSidecar) *Transaction { - blobtx, ok := tx.inner.(*BlobTx) - if !ok { - return tx - } - cpy := &Transaction{ - inner: blobtx.withSidecar(sidecar), - time: tx.time, - } - // Note: tx.size cache not carried over because the sidecar was not included in size! - if h := tx.hash.Load(); h != nil { - cpy.hash.Store(h) - } - if f := tx.from.Load(); f != nil { - cpy.from.Store(f) - } - return cpy -} - // WithoutBlobTxSidecar returns a copy of tx with the blob sidecar removed. func (tx *Transaction) WithoutBlobTxSidecar() *Transaction { blobtx, ok := tx.inner.(*BlobTx)