-
Notifications
You must be signed in to change notification settings - Fork 220
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
[ADP-3350] Change lightSync
to use Read.ChainPoint
#4530
[ADP-3350] Change lightSync
to use Read.ChainPoint
#4530
Conversation
bc730fd
to
e805055
Compare
bbe8777
to
33dc2be
Compare
33dc2be
to
2504a29
Compare
0e48ea8
to
96921ea
Compare
2504a29
to
fce4c55
Compare
fce4c55
to
a9e5bc7
Compare
96921ea
to
a4bca66
Compare
a9e5bc7
to
d4b5c51
Compare
d4b5c51
to
7474300
Compare
Read.ChainPoint
and use it in network layerlightSync
to use Read.ChainPoint
7474300
to
b0d58e7
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
b0d58e7
to
2ef05e5
Compare
compareSlot pt1 pt2 = compare (toOrdered pt1) (toOrdered pt2) | ||
where | ||
toOrdered :: Read.ChainPoint -> Integer | ||
toOrdered Read.GenesisPoint = -1 |
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.
with 0
it would not work?
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.
Yes. The points GenesisPoint
and Read.BlockPoint (Read.SlotNo 0)
are different.
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.
👍
This pull request changes the `lightSync` function to use the data type `ChainPoint` from the `Cardano.Wallet.Read` hierarchy. ### Comments * `lightSync` still uses the legacy `BlockHeader` type from `primitive` for now. * The goal is to eventually remove the legacy `primitive` types. ### Issue Number ADP-3350
2ef05e5
to
f9faccc
Compare
This pull request changes the
lightSync
function to use the data typeChainPoint
from theCardano.Wallet.Read
hierarchy.Comments
lightSync
still uses the legacyBlockHeader
type fromprimitive
for now.primitive
types.Issue Number
ADP-3350