-
Notifications
You must be signed in to change notification settings - Fork 41
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
Refactor ChainPoint conversion from pallas Point #2049
Conversation
Test Results 4 files ±0 55 suites ±0 10m 37s ⏱️ -2s Results for commit ddc7211. ± Comparison against base commit bf48df5. This pull request removes 9 and adds 13 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
f975137
to
e7de8b2
Compare
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 🚀
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 👍
mithril-common/src/cardano_block_scanner/chain_reader_block_streamer.rs
Outdated
Show resolved
Hide resolved
mithril-common/src/cardano_block_scanner/chain_reader_block_streamer.rs
Outdated
Show resolved
Hide resolved
Instead of a hex encoded string, making it closer to what the chain use. Conversion are still done but later, and not as often.
* mithril-aggregator from `0.5.90` to `0.5.91` * mithril-common from `0.4.74` to `0.4.75` * mithril-signer from `0.2.204` to `0.2.205`
d4518bc
to
ddc7211
Compare
Content
This PR introduce a new type,
RawCardanoPoint
, that is used in place of ourChainPoint
in the transaction import process.The
RawCardanoPoint
doesn't have a block number unlikeChainPoint
, this allow a lossless conversion from and to the pallas point used in their chainsync implementation, avoiding the creation ofChainPoint
with a block number of0
.Also this PR changes the
ScannedBlock
block hash to be a bytes array as this reduce the number of conversion needed when working with pallas types as this type is only used in conjunction with those types (RawCardanoPoint
also use a bytes array for the same reason).Pre-submit checklist
Issue(s)
Closes #2037