-
Notifications
You must be signed in to change notification settings - Fork 437
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
Eip778 #3701
Eip778 #3701
Conversation
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.
- Maximum size of an encoded node record is 300 bytes.
Should we enforce it (validate) or we assume that it's not going to happen with the current implementation? - I think it would be good if we start adding descriptions to all class we implement.
protected abstract int GetRlpLengthOfValue(); | ||
|
||
/// <summary> | ||
/// Gets the key as a string to be added in the |
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.
Not finished comment?
public class NodeRecord | ||
{ | ||
private SortedDictionary<string, EnrContentEntry> Entries { get; } = new(); | ||
|
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.
Property desc?
The sequence number, a 64-bit unsigned integer. Nodes should increase the number whenever the record changes and republish the record.
{ | ||
private SortedDictionary<string, EnrContentEntry> Entries { get; } = new(); | ||
|
||
public int Sequence { get; set; } |
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.
Maybe worth renaming to Seq ? Or maybe EnrSequence ?
Resolves #2618
Changes:
Implements EIP-778
Types of changes
What types of changes does your code introduce?
Put an
x
in the boxes that applyTesting
Requires testing
In case you checked yes, did you write tests??