-
Notifications
You must be signed in to change notification settings - Fork 389
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
UnpackAny limit exceeded for historical txs #4370
Comments
height gating seems sufficient. You shouldnt need to worry about the vulnerability in the historical context |
Height based gating has the downside that we must add height constants for each supported chain-id (arabica, mocha, mainnet beta). If we pursue option 2 then we can avoid any chain-id specific logic. Given we bumped to cosmos-sdk v1.25.1 in https://github.com/celestiaorg/celestia-app/releases/tag/v3.1.1, we need to verify that all celestia-app v3 blocks adhere to the 100 UnpackAny limit and then we can add the version gate into the binary. |
imo we should simply add the version gate like all other consensus breaking changes, even if that means adding the gate in the fork of the sdk. |
I would add the height gating alone, at least to start. That at least guarantees nothing can go wrong. The gating can be loosened to a version gating in the future without breaking anything if we determine there are no such txs in the history. |
On Mainnet Beta celestia-app v3 there have been no transactions with > 50 MsgExecs (see query). Numia doesn't support Arabica or Mocha (yet, I just submitted a feature request) so I can't easily verify the same claim on those networks. |
How difficult will it be to apply the limit based on either of the app version or height? On the surface it doesn't look like a simple change |
Context
From @vvuwei
Problem
https://github.com/celestiaorg/cosmos-sdk/releases/tag/v1.25.1-sdk-v0.46.16 included a fix that addressed a security vulnerability but celestia-app releases with that change won't be able to process https://www.mintscan.io/celestia/block/7013 because https://www.mintscan.io/celestia/tx/999b89260b384256f32722f7a1c54b319889cc6dd34c73b99ec1f47e560c5b66?height=7013. This effectively breaks single-binary syncs.
Options
The text was updated successfully, but these errors were encountered: