-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[pallet-revive] Enforce weight limit on dry-run RPC calls #10902
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
base: master
Are you sure you want to change the base?
Conversation
|
/cmd prdoc --audience runtime_dev --bump patch |
0xRVE
left a comment
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.
CI needs to be fixed
2a772f2 to
de22c14
Compare
| // no need to limit weight here, we will check later whether it exceeds | ||
| // evm_max_extrinsic_weight | ||
| maybe_weight_limit: None, | ||
| weight_limit: Self::evm_max_extrinsic_weight(), |
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 is the only crucial change in this PR, the other changes are all logically implied when changing from optional weight to weight.
This change looks good to me but I was not sure for a second whether this also needs to cover the deposit cost. But I remember it doesn't (please confirm).
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.
Away from keyboard will check in a bit
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 in Substrate mode weight and deposit are tracked separetly
11c6b85 to
5159714
Compare
|
/cmd prdoc --audience runtime_dev --bump patch |
…time_dev --bump patch'
|
All GitHub workflows were cancelled due to failure one of the required jobs. |
Summary
weight_limitfield inTransactionLimits::EthereumGasnon-optional, enforcing bounded execution on all Ethereum-style callsdry_run_eth_transactto useevm_max_extrinsic_weight()as the weight limit, preventing unbounded computation during dry-run RPC callsOptionhandling for weight limits in Ethereum execution mode