-
Notifications
You must be signed in to change notification settings - Fork 7
add transient storage support in polkadot test execution mode
#449
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
| array-bytes = { version = "6.2.2", default-features = false } | ||
| codec = { version = "3.7.5", default-features = false, package = "parity-scale-codec" } | ||
| polkadot-sdk = { git = "https://github.com/paritytech/polkadot-sdk.git", branch = "master", default-features = false, features = [ | ||
| polkadot-sdk = { git = "https://github.com/paritytech/polkadot-sdk.git", branch = "pkhry/external_transient_storage", default-features = false, features = [ |
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.
Do you plan to use this ?
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.
will use latest master as soon as the pr is merged
2a811e5 to
b98ae85
Compare
| pub const CodeHashLockupDepositPercent: Perbill = Perbill::from_percent(0); | ||
| pub const NativeToEthRatio: u32 = 1_000_000; | ||
| pub const GasScale : u32 = 1_000_000; | ||
| pub const GasScale : u32 = 100_000_000; |
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.
What does it fix?
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.
OutOfGas errors with balancer v3
| let ctx = get_context_ref(ctx); | ||
| let mut state = ctx.externalties.0.lock().unwrap(); | ||
| let _ = state.externalities.ext().storage_rollback_transaction(); | ||
| state.transient_storage.rollback_transaction(); |
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.
maybe we could wrap this functionality and just call rollback_transaction()
instead of calling rollback on transient storage and storage?
Similarly we could do it for start_transaction. WDYT?
Description
depends on #424