Removes StorageBlock type (#4483)

This commit is contained in:
Zachinquarantine 2022-06-18 03:35:43 -04:00 committed by GitHub
parent 50873a5b1d
commit c2518ad6a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -659,21 +659,6 @@ type Block struct {
ReceivedFrom interface{}
}
// [deprecated by eth/63]
// StorageBlock defines the RLP encoding of a Block stored in the
// state database. The StorageBlock encoding contains fields that
// would otherwise need to be recomputed.
type StorageBlock Block
// [deprecated by eth/63]
// "storage" block encoding. used for database.
type storageblock struct {
Header *Header
Txs []Transaction
Uncles []*Header
TD *big.Int
}
// Copy transaction senders from body into the transactions
func (b *Body) SendersToTxs(senders []common.Address) {
if senders == nil {
@ -1157,16 +1142,6 @@ func (bb Block) EncodeRLP(w io.Writer) error {
return nil
}
// [deprecated by eth/63]
func (b *StorageBlock) DecodeRLP(s *rlp.Stream) error {
var sb storageblock
if err := s.Decode(&sb); err != nil {
return err
}
b.header, b.uncles, b.transactions = sb.Header, sb.Uncles, sb.Txs
return nil
}
func (b *Block) Uncles() []*Header { return b.uncles }
func (b *Block) Transactions() Transactions { return b.transactions }