-
Notifications
You must be signed in to change notification settings - Fork 997
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
EIP-7594 - Update ENR record #3772
Conversation
Proposal for ethereum#3744
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.
Looks good to me
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
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 from lodestar
looks good |
Actually it seems we are heading to have exactly
|
Proposal for #3744
The maximum encoded size of a node record is 300 bytes. (Source).
1. Field key
Reducing the
custoding_subnet_count
key tocsc
saves 19 bytes.2. Field value type
Switching the value of
custoding_subnet_count
fromSSZ uint64
tobig endian integer
has multiple advantages:128
(which is likely to be the case for the subnets count), then the value needs exactly one byte of storage when encoded. (Source).Switching the value of
custoding_subnet_count
fromSSZ uint64
tobig endian integer
saves 7 bytes.Total
Changing
1.
and2.
saves a total of19 + 7 = 26 bytes
.26 bytes
represents about8.5%
of the maximum size of an encoded node record.