-
Notifications
You must be signed in to change notification settings - Fork 839
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
Dynamic uncompressed code size limit #7760
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Andrei Sandu <[email protected]>
Signed-off-by: Andrei Sandu <[email protected]>
Signed-off-by: Andrei Sandu <[email protected]>
Signed-off-by: Andrei Sandu <[email protected]>
@@ -824,6 +827,9 @@ impl RuntimeApiRequest { | |||
|
|||
/// `SchedulingLookahead` | |||
pub const SCHEDULING_LOOKAHEAD_RUNTIME_REQUIREMENT: u32 = 12; | |||
|
|||
/// `ValidationCodeBombLimit` | |||
pub const VALIDATION_CODE_BOMB_LIMIT_RUNTIME_REQUIREMENT: u32 = 12; |
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.
Hmm, this likely needs to be 13, if we don't make it to march stable.
/cmd prdoc --audience runtime-dev --bump minor |
/cmd prdoc --audience runtime_dev --bump minor |
Command "prdoc --audience runtime-dev --bump minor" has failed ❌! See logs here |
Signed-off-by: Andrei Sandu <[email protected]>
Signed-off-by: Andrei Sandu <[email protected]>
Signed-off-by: Andrei Sandu <[email protected]>
Signed-off-by: Andrei Sandu <[email protected]>
Signed-off-by: Andrei Sandu <[email protected]>
Signed-off-by: Andrei Sandu <[email protected]>
Signed-off-by: Andrei Sandu <[email protected]>
Signed-off-by: Andrei Sandu <[email protected]>
Signed-off-by: Andrei Sandu <[email protected]>
@@ -69,6 +69,10 @@ const MERKLE_NODE_MAX_SIZE: usize = 512 + 100; | |||
const MERKLE_PROOF_MAX_DEPTH: usize = 8; | |||
|
|||
/// The bomb limit for decompressing code blobs. | |||
#[deprecated( |
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.
Nice!
All GitHub workflows were cancelled due to failure one of the required jobs. |
|
||
/***** Added in v12 *****/ | ||
/// Retrieve the maximum uncompressed code size. | ||
#[api_version(12)] |
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.
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.
I want to backport in march stable :D
@@ -353,6 +353,10 @@ pub trait RuntimeApiSubsystemClient { | |||
// === v12 === | |||
/// Fetch the scheduling lookahead value | |||
async fn scheduling_lookahead(&self, at: Hash) -> Result<u32, ApiError>; | |||
|
|||
// === v12 === |
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.
// === v12 === | |
// === v13 === |
@@ -308,5 +308,10 @@ sp_api::decl_runtime_apis! { | |||
/// Retrieve the scheduling lookahead | |||
#[api_version(12)] | |||
fn scheduling_lookahead() -> u32; | |||
|
|||
/***** Added in v12 *****/ |
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.
/***** Added in v12 *****/ | |
/***** Added in v13 *****/ |
@@ -824,6 +827,9 @@ impl RuntimeApiRequest { | |||
|
|||
/// `SchedulingLookahead` | |||
pub const SCHEDULING_LOOKAHEAD_RUNTIME_REQUIREMENT: u32 = 12; | |||
|
|||
/// `ValidationCodeBombLimit` | |||
pub const VALIDATION_CODE_BOMB_LIMIT_RUNTIME_REQUIREMENT: u32 = 12; |
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.
pub const VALIDATION_CODE_BOMB_LIMIT_RUNTIME_REQUIREMENT: u32 = 12; | |
pub const VALIDATION_CODE_BOMB_LIMIT_RUNTIME_REQUIREMENT: u32 = 13; |
Fixes #7664
The discussion in #7710 should provide the context for why this solution was picked.