Skip to content
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

vm: make map serialization more compatible with C# #808

Merged
merged 1 commit into from
Mar 29, 2020

Conversation

roman-khimov
Copy link
Member

C# pushes value and key to the stack of non-serialized items, so key gets
serialized first followed by value. Fixes #806.

Notice though that neither IDictionary in C#, nor map in Go have elements
ordered, so we can easily get a difference in KV pairs order and it would be
impossible to fix.

C# pushes value and key to the stack of non-serialized items, so key gets
serialized first followed by value. Fixes #806.

Notice though that neither IDictionary in C#, nor map in Go have elements
ordered, so we can easily get a difference in KV pairs order and it would be
impossible to fix.
@codecov
Copy link

codecov bot commented Mar 28, 2020

Codecov Report

Merging #808 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #808   +/-   ##
=======================================
  Coverage   66.75%   66.75%           
=======================================
  Files         141      141           
  Lines       12963    12963           
=======================================
  Hits         8654     8654           
  Misses       3899     3899           
  Partials      410      410
Impacted Files Coverage Δ
pkg/vm/serialization.go 95.29% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 198fffb...665bf78. Read the comment docs.

@roman-khimov roman-khimov merged commit 0d482ce into master Mar 29, 2020
@roman-khimov roman-khimov deleted the fix-map-serialization branch March 29, 2020 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

State changes difference at mainnet's block 3101467
2 participants