forked from cerc-io/plugeth
core/types: improve LogForStorage and ReceiptForStorage comments (#25032)
Co-authored-by: Felix Lange <fjl@twurst.com>
This commit is contained in:
parent
6160296445
commit
f5037185aa
@ -98,8 +98,8 @@ func (l *Log) DecodeRLP(s *rlp.Stream) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// LogForStorage is a wrapper around a Log that flattens and parses the entire content of
|
// LogForStorage is a wrapper around a Log that handles
|
||||||
// a log including non-consensus fields.
|
// backward compatibility with prior storage formats.
|
||||||
type LogForStorage Log
|
type LogForStorage Log
|
||||||
|
|
||||||
// EncodeRLP implements rlp.Encoder.
|
// EncodeRLP implements rlp.Encoder.
|
||||||
|
@ -267,8 +267,8 @@ func (r *Receipt) Size() common.StorageSize {
|
|||||||
return size
|
return size
|
||||||
}
|
}
|
||||||
|
|
||||||
// ReceiptForStorage is a wrapper around a Receipt that flattens and parses the
|
// ReceiptForStorage is a wrapper around a Receipt with RLP serialization
|
||||||
// entire content of a receipt, as opposed to only the consensus fields originally.
|
// that omits the Bloom field and deserialization that re-computes it.
|
||||||
type ReceiptForStorage Receipt
|
type ReceiptForStorage Receipt
|
||||||
|
|
||||||
// EncodeRLP implements rlp.Encoder, and flattens all content fields of a receipt
|
// EncodeRLP implements rlp.Encoder, and flattens all content fields of a receipt
|
||||||
|
Loading…
Reference in New Issue
Block a user