-
Notifications
You must be signed in to change notification settings - Fork 32
Version ledger tables and encode TxIns in big-endian #1652
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
base: js/lsm-sc-da
Are you sure you want to change the base?
Conversation
198812f
to
f7abd5b
Compare
94471a8
to
eb9dac9
Compare
eb9dac9
to
b89e84a
Compare
f7abd5b
to
9b557ad
Compare
b89e84a
to
dfb21fe
Compare
9b557ad
to
4d4c194
Compare
dfb21fe
to
0de181c
Compare
4d4c194
to
a275075
Compare
0de181c
to
51a81c5
Compare
a275075
to
f90853e
Compare
51a81c5
to
bec1fb6
Compare
f90853e
to
545c7dc
Compare
-- | The only purpose of this type is to modify the MemPack instance to use big | ||
-- endian serialization. This is necessary to ensure streaming functions of the | ||
-- UTxO set preserve the order of the entries, as otherwise we would get | ||
-- different sortings if sorting via the Serialized form and the Haskell Ord | ||
-- instance. |
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.
if we're explicitly only using this to ensure that the sorting is consistent between the serialized and unserialized versions, should there be a property test to ensure that this remains accurate?
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.
Very good point. I will add a test.
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.
FTR: As discussed today, this test will eventually be removed again, once we change the encoding for the benefit of the LSM compact index. Then, the test will actually start failing, which seems like a nice prompt to also remove this comment (instead explaining why it is fine that the Ord
order and the serialization-implied order differ).
bec1fb6
to
a81a594
Compare
545c7dc
to
8983b7b
Compare
No description provided.