-
Notifications
You must be signed in to change notification settings - Fork 61
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
accumulator/batchproof: Remove the numTargets max check in deserialize #263
Comments
It's weird because the numbers seem close to 65K, not like millions / billions, suggesting that But it can't be; So something else weird is going on, like too many targets being added, duplicate targets, or targets that don't correspond to inputs or something... |
Might also just be the utcd code ugh... |
Panics when doing this (tested on commit EDIT: So in the code snippet below, we're adding extra data besides the proofs so it's possible to be greater than 1<<16. It's proof + sorted targets that we're putting in the proofs. utreexo/accumulator/forestproofs.go Lines 172 to 189 in deb3c4c
|
In mainnet, the check for 1<<16 numTargets doesn't work because there's a mainnet block that crashes with this but doesn't with 1<<31. Not sure which block and exactly how many inputs it's referencing.
utreexo/accumulator/batchproof.go
Lines 108 to 111 in 71712c4
But this is just a check to see if the proof was serialized correctly right? We should remove the whole check completely and replace it with some tests.
The text was updated successfully, but these errors were encountered: