-
Notifications
You must be signed in to change notification settings - Fork 468
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement 4844 blob reading in replay binary #2093
Conversation
arbstate/das_reader.go
Outdated
@@ -55,6 +58,10 @@ func IsZeroheavyEncodedHeaderByte(header byte) bool { | |||
return (ZeroheavyMessageHeaderFlag & header) > 0 | |||
} | |||
|
|||
func IsBlobHashesHeaderByte(header byte) bool { | |||
return (BlobHashesHeaderFlag & header) > 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this right if the flag has more than one 1 bit, like 0x50?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, this isn't right
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed. Great catch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I also added support for the node's inbox reader in this PR since it was a very small additional change (just creating the blob reader in node.go).