core/types: improve LogForStorage and ReceiptForStorage comments (#25032)

Co-authored-by: Felix Lange <fjl@twurst.com>
pull/22656/head^2
henridf 2 years ago committed by GitHub
parent 6160296445
commit f5037185aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      core/types/log.go
  2. 4
      core/types/receipt.go

@ -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.

@ -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

Loading…
Cancel
Save