Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
f5037185
Unverified
Commit
f5037185
authored
Jun 08, 2022
by
henridf
Committed by
GitHub
Jun 08, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core/types: improve LogForStorage and ReceiptForStorage comments (#25032)
Co-authored-by:
Felix Lange
<
fjl@twurst.com
>
parent
61602964
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
log.go
core/types/log.go
+2
-2
receipt.go
core/types/receipt.go
+2
-2
No files found.
core/types/log.go
View file @
f5037185
...
@@ -98,8 +98,8 @@ func (l *Log) DecodeRLP(s *rlp.Stream) error {
...
@@ -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 field
s.
//
backward compatibility with prior storage format
s.
type
LogForStorage
Log
type
LogForStorage
Log
// EncodeRLP implements rlp.Encoder.
// EncodeRLP implements rlp.Encoder.
...
...
core/types/receipt.go
View file @
f5037185
...
@@ -267,8 +267,8 @@ func (r *Receipt) Size() common.StorageSize {
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment