-
Notifications
You must be signed in to change notification settings - Fork 664
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
Add support for Maps to the reflect_codec #1790
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nytzuga
force-pushed
the
add-support-for-map-into-reflectcodec
branch
3 times, most recently
from
August 2, 2023 00:53
726dc65
to
e526eba
Compare
nytzuga
changed the title
Draft: Add support for Maps to the reflect_codec
Add support for Maps to the reflect_codec
Aug 2, 2023
ceyonur
requested changes
Aug 2, 2023
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.
A great feature for codec 💯
danlaine
reviewed
Aug 2, 2023
danlaine
reviewed
Aug 2, 2023
danlaine
reviewed
Aug 2, 2023
danlaine
reviewed
Aug 2, 2023
danlaine
reviewed
Aug 2, 2023
danlaine
suggested changes
Aug 2, 2023
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.
see comments
danlaine
reviewed
Aug 2, 2023
danlaine
reviewed
Aug 2, 2023
danlaine
reviewed
Aug 2, 2023
nytzuga
force-pushed
the
add-support-for-map-into-reflectcodec
branch
from
August 2, 2023 21:11
a7c556e
to
acf8c70
Compare
nytzuga
force-pushed
the
add-support-for-map-into-reflectcodec
branch
3 times, most recently
from
August 3, 2023 03:46
734c5ce
to
c940c9d
Compare
ceyonur
reviewed
Aug 3, 2023
danlaine
reviewed
Aug 3, 2023
nytzuga
force-pushed
the
add-support-for-map-into-reflectcodec
branch
from
August 11, 2023 15:15
eb8fc0f
to
287b05f
Compare
dhrubabasu
reviewed
Aug 11, 2023
Co-authored-by: Dhruba Basu <7675102+dhrubabasu@users.noreply.github.com> Signed-off-by: Cesar <137245636+nytzuga@users.noreply.github.com>
dhrubabasu
reviewed
Aug 11, 2023
dhrubabasu
approved these changes
Aug 11, 2023
StephenButtolph
approved these changes
Aug 11, 2023
nytzuga
added a commit
to ava-labs/subnet-evm
that referenced
this pull request
Aug 14, 2023
The goal of the this codec is to serialize `params.UpgradeConfig` in a deterministic way, to be hashed later. This hash is going to be share by nodes at handshake, so they can determine if they have the same upgrade config. This PR leverages the newly introduced support to serilize Maps ava-labs/avalanchego#1790, which are deterministic (the values are sorted by keys before serializing)
nytzuga
added a commit
to ava-labs/subnet-evm
that referenced
this pull request
Aug 14, 2023
The goal of the this codec is to serialize `params.UpgradeConfig` in a deterministic way, to be hashed later. This hash is going to be share by nodes at handshake, so they can determine if they have the same upgrade config. This PR leverages the newly introduced support to serilize Maps ava-labs/avalanchego#1790, which are deterministic (the values are sorted by keys before serializing)
nytzuga
added a commit
to ava-labs/subnet-evm
that referenced
this pull request
Aug 14, 2023
The goal of the this codec is to serialize `params.UpgradeConfig` in a deterministic way, to be hashed later. This hash is going to be share by nodes at handshake, so they can determine if they have the same upgrade config. This PR leverages the newly introduced support to serilize Maps ava-labs/avalanchego#1790, which are deterministic (the values are sorted by keys before serializing)
nytzuga
added a commit
to ava-labs/subnet-evm
that referenced
this pull request
Aug 14, 2023
Update the reference to avalanchego@dev to test the feature. The needed feature ava-labs/avalanchego#1790 is only supported in dev.
nytzuga
added a commit
to ava-labs/subnet-evm
that referenced
this pull request
Sep 8, 2023
The goal of the this codec is to serialize `params.UpgradeConfig` in a deterministic way, to be hashed later. This hash is going to be share by nodes at handshake, so they can determine if they have the same upgrade config. This PR leverages the newly introduced support to serilize Maps ava-labs/avalanchego#1790, which are deterministic (the values are sorted by keys before serializing)
nytzuga
added a commit
to ava-labs/subnet-evm
that referenced
this pull request
Sep 14, 2023
The goal of the this codec is to serialize `params.UpgradeConfig` in a deterministic way, to be hashed later. This hash is going to be share by nodes at handshake, so they can determine if they have the same upgrade config. This PR leverages the newly introduced support to serilize Maps ava-labs/avalanchego#1790, which are deterministic (the values are sorted by keys before serializing)
nytzuga
added a commit
to ava-labs/subnet-evm
that referenced
this pull request
Sep 26, 2023
The goal of the this codec is to serialize `params.UpgradeConfig` in a deterministic way, to be hashed later. This hash is going to be share by nodes at handshake, so they can determine if they have the same upgrade config. This PR leverages the newly introduced support to serilize Maps ava-labs/avalanchego#1790, which are deterministic (the values are sorted by keys before serializing)
nytzuga
added a commit
to ava-labs/subnet-evm
that referenced
this pull request
Oct 11, 2023
The goal of the this codec is to serialize `params.UpgradeConfig` in a deterministic way, to be hashed later. This hash is going to be share by nodes at handshake, so they can determine if they have the same upgrade config. This PR leverages the newly introduced support to serilize Maps ava-labs/avalanchego#1790, which are deterministic (the values are sorted by keys before serializing)
nytzuga
added a commit
to ava-labs/subnet-evm
that referenced
this pull request
Oct 11, 2023
The goal of the this codec is to serialize `params.UpgradeConfig` in a deterministic way, to be hashed later. This hash is going to be share by nodes at handshake, so they can determine if they have the same upgrade config. This PR leverages the newly introduced support to serilize Maps ava-labs/avalanchego#1790, which are deterministic (the values are sorted by keys before serializing)
nytzuga
added a commit
to ava-labs/subnet-evm
that referenced
this pull request
Oct 13, 2023
The goal of the this codec is to serialize `params.UpgradeConfig` in a deterministic way, to be hashed later. This hash is going to be share by nodes at handshake, so they can determine if they have the same upgrade config. This PR leverages the newly introduced support to serilize Maps ava-labs/avalanchego#1790, which are deterministic (the values are sorted by keys before serializing)
nytzuga
added a commit
to ava-labs/subnet-evm
that referenced
this pull request
Nov 2, 2023
The goal of the this codec is to serialize `params.UpgradeConfig` in a deterministic way, to be hashed later. This hash is going to be share by nodes at handshake, so they can determine if they have the same upgrade config. This PR leverages the newly introduced support to serilize Maps ava-labs/avalanchego#1790, which are deterministic (the values are sorted by keys before serializing)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Support to serialize/deserialize maps with the reflect_codec. This is needed in the subnet EMV to use it to exchange information about the upgrade configs.
This PR adds support for maps and tests it.
The internal binary format is quite simple
The length is the total number of elements and keys, therefore it should always be a pair number.
Why this should be merged
How this works
How this was tested