good morning!!!!

Skip to content
Snippets Groups Projects
Unverified Commit c2518ad6 authored by Zachinquarantine's avatar Zachinquarantine Committed by GitHub
Browse files

Removes StorageBlock type (#4483)

parent 50873a5b
Branches
No related tags found
No related merge requests found
......@@ -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 }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment