Skip to content

Commit

Permalink
Revert "core/types: add support for BlobTxType receipts (ethereum#27470
Browse files Browse the repository at this point in the history
…)"

This reverts commit ee79490.
  • Loading branch information
devopsbo3 committed Nov 10, 2023
1 parent 496eb2b commit ff8fefe
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions core/types/receipt.go
Expand Up @@ -194,7 +194,7 @@ func (r *Receipt) decodeTyped(b []byte) error {
return errShortTypedReceipt
}
switch b[0] {
case DynamicFeeTxType, AccessListTxType, BlobTxType:
case DynamicFeeTxType, AccessListTxType:
var data receiptRLP
err := rlp.DecodeBytes(b[1:], &data)
if err != nil {
Expand Down Expand Up @@ -296,13 +296,14 @@ func (rs Receipts) Len() int { return len(rs) }
func (rs Receipts) EncodeIndex(i int, w *bytes.Buffer) {
r := rs[i]
data := &receiptRLP{r.statusEncoding(), r.CumulativeGasUsed, r.Bloom, r.Logs}
if r.Type == LegacyTxType {
rlp.Encode(w, data)
return
}
w.WriteByte(r.Type)
switch r.Type {
case AccessListTxType, DynamicFeeTxType, BlobTxType:
case LegacyTxType:
rlp.Encode(w, data)
case AccessListTxType:
w.WriteByte(AccessListTxType)
rlp.Encode(w, data)
case DynamicFeeTxType:
w.WriteByte(DynamicFeeTxType)
rlp.Encode(w, data)
default:
// For unsupported types, write nothing. Since this is for
Expand Down

0 comments on commit ff8fefe

Please sign in to comment.