-
Notifications
You must be signed in to change notification settings - Fork 94
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
[r2r] fix rick and morty genesis block deserialization #1647
Conversation
Signed-off-by: borngraced <samiodev@icloud.com>
Signed-off-by: borngraced <samiodev@icloud.com>
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.
Thanks a lot for finding this bug! The below test is failing after the changes in this PR, please fix it!
https://github.com/KomodoPlatform/atomicDEX-API/blob/c02c8d1dbbd09b2eb8587e81198eaa76839d5cf7/mm2src/mm2_bitcoin/chain/src/block_header.rs#L433
Signed-off-by: borngraced <samiodev@icloud.com>
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.
One more change!
Signed-off-by: borngraced <samiodev@icloud.com>
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! @borngraced I think we need to bump this issue #1345 to avoid adding more variants in the future, you can work on it in the next sprint along spv.
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
Is this problem also valid for other KMD asset chains, for example, MORTY? |
I'm unsure about any other assets but I'll make some test tomorrow with some other assets |
I just checked it, MORTY has the same problem |
tysm! @caglaryucekaya 😃 |
Signed-off-by: borngraced <samiodev@icloud.com>
c23aad2
@sergeyboyko0791 @caglaryucekaya @shamardy this is review for further review again after fixing |
I think we could merge this fix for RICK and MORTY coins, but later such functionality should not be hardcoded but configured in the coins file. |
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.
Thanks for the fix! Please consider my suggestions
yes, I will take a look at this during the next sprint. #1345 |
Signed-off-by: borngraced <samiodev@icloud.com>
deserialization
was failing forRICK's genesis block
exclusively so I found out that theblock header version(1)
in thegenesis block
is different from other blocks(4)
.Fixes: #1640
Signed-off-by: borngraced samiodev@icloud.com