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

Block deser fail due to ErgoBox deser error (box id check) #677

Closed
greenhat opened this issue Jan 26, 2023 · 4 comments
Closed

Block deser fail due to ErgoBox deser error (box id check) #677

greenhat opened this issue Jan 26, 2023 · 4 comments
Assignees

Comments

@greenhat
Copy link
Member

Cannot deserialize block 2ad5af788bfd1b92790eadb42a300ad4fc38aaaba599a43574b1ea45d5d9dee4 with sigma-rust: Getting Box id parsed from JSON differs from calculated from box serialized bytes

ergo-lib = { git = "https://github.com/ergoplatform/sigma-rust", rev = "62b8dedc0577f01551b6f8be4585f39b028d70f7", features = ["json", "arbitrary"] }

@greenhat greenhat self-assigned this Jan 26, 2023
@oskin1
Copy link
Member

oskin1 commented Jan 26, 2023

One more failing block b17847c0c523660b13d707396ab8301fa3c8a545ddc5acf9ec2803cc2cbb3ef5

@greenhat greenhat moved this from To do to In progress in greenhat WIP Feb 1, 2023
@greenhat
Copy link
Member Author

greenhat commented Feb 1, 2023

in block 2ad5af788bfd1b92790eadb42a300ad4fc38aaaba599a43574b1ea45d5d9dee4 the failing box is 551242f664faa1dae9d8788b94813945fbfacf0c7be11dd044cb4d0430ca0427 reported in #587

@greenhat
Copy link
Member Author

greenhat commented Feb 7, 2023

In block b17847c0c523660b13d707396ab8301fa3c8a545ddc5acf9ec2803cc2cbb3ef5 a tx has an input with ContextExtension items decoded from JSON out of order which leads to an incorrect tx id.
Extracted to #685

EDIT: in the same block token amount is parsed incorrectly; extracted to #686

@greenhat
Copy link
Member Author

greenhat commented Feb 7, 2023

Fixed in #684 and #687

@greenhat greenhat closed this as completed Feb 7, 2023
@github-project-automation github-project-automation bot moved this from In progress to Done in greenhat WIP Feb 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants