mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
Revert "core/types: add support for BlobTxType receipts (#27470)"
This reverts commit ee79490ec6.
This commit is contained in:
parent
496eb2bbf6
commit
ff8fefeb76
1 changed files with 8 additions and 7 deletions
|
|
@ -194,7 +194,7 @@ func (r *Receipt) decodeTyped(b []byte) error {
|
||||||
return errShortTypedReceipt
|
return errShortTypedReceipt
|
||||||
}
|
}
|
||||||
switch b[0] {
|
switch b[0] {
|
||||||
case DynamicFeeTxType, AccessListTxType, BlobTxType:
|
case DynamicFeeTxType, AccessListTxType:
|
||||||
var data receiptRLP
|
var data receiptRLP
|
||||||
err := rlp.DecodeBytes(b[1:], &data)
|
err := rlp.DecodeBytes(b[1:], &data)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
@ -296,13 +296,14 @@ func (rs Receipts) Len() int { return len(rs) }
|
||||||
func (rs Receipts) EncodeIndex(i int, w *bytes.Buffer) {
|
func (rs Receipts) EncodeIndex(i int, w *bytes.Buffer) {
|
||||||
r := rs[i]
|
r := rs[i]
|
||||||
data := &receiptRLP{r.statusEncoding(), r.CumulativeGasUsed, r.Bloom, r.Logs}
|
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 {
|
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)
|
rlp.Encode(w, data)
|
||||||
default:
|
default:
|
||||||
// For unsupported types, write nothing. Since this is for
|
// For unsupported types, write nothing. Since this is for
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue