Skip to content

Commit

Permalink
core/types: improve LogForStorage and ReceiptForStorage comments (eth…
Browse files Browse the repository at this point in the history
…ereum#25032)


Co-authored-by: Felix Lange <[email protected]>
  • Loading branch information
2 people authored and jagdeep sidhu committed Jun 13, 2022
1 parent 61cb1f2 commit f6a59fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions core/types/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ func (l *Log) DecodeRLP(s *rlp.Stream) error {
return err
}

// LogForStorage is a wrapper around a Log that flattens and parses the entire content of
// a log including non-consensus fields.
// LogForStorage is a wrapper around a Log that handles
// backward compatibility with prior storage formats.
type LogForStorage Log

// EncodeRLP implements rlp.Encoder.
Expand Down
4 changes: 2 additions & 2 deletions core/types/receipt.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,8 @@ func (r *Receipt) Size() common.StorageSize {
return size
}

// ReceiptForStorage is a wrapper around a Receipt that flattens and parses the
// entire content of a receipt, as opposed to only the consensus fields originally.
// ReceiptForStorage is a wrapper around a Receipt with RLP serialization
// that omits the Bloom field and deserialization that re-computes it.
type ReceiptForStorage Receipt

// EncodeRLP implements rlp.Encoder, and flattens all content fields of a receipt
Expand Down

0 comments on commit f6a59fc

Please sign in to comment.