Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Move runtime to with_transaction in order to Rollback state changes #4067

Merged
2 commits merged into from
Oct 12, 2021

Conversation

Lldenaurois
Copy link
Contributor

Closes #4055

The filter_multi_disputes_data function currently modifies internal state. However, this function should run on fresh state at every point and therefore it must be wrapped in a Rollback transaction.

This PR addresses this shortcoming.

@Lldenaurois Lldenaurois added A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit. labels Oct 12, 2021
rphmeier
rphmeier previously approved these changes Oct 12, 2021
Copy link
Contributor

@rphmeier rphmeier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@rphmeier
Copy link
Contributor

https://crates.parity.io/src/frame_support/lib.rs.html#704-713 - Can you add another commit changing all filter_multi_dispute_data tests to use the assert_storage_noop! macro?

@rphmeier rphmeier dismissed their stale review October 12, 2021 14:47

test changes first

@rphmeier
Copy link
Contributor

bot merge

@ghost
Copy link

ghost commented Oct 12, 2021

Trying merge.

@ghost ghost merged commit ae105f2 into master Oct 12, 2021
@ghost ghost deleted the use_with_transaction branch October 12, 2021 20:09
ordian added a commit that referenced this pull request Oct 14, 2021
* master: (40 commits)
  use pipeline-scripts for dependent projects script (#4017)
  companion for substrate/10013 (#4078)
  fix restart issue of staking miner (#4073)
  use `WEIGHT_PER_SECOND` (#4077)
  Switch to compressed runtimes (#4061)
  Create a README for XCMv1 detailing notable changes (#4058)
  Bump proc-macro2 from 1.0.29 to 1.0.30 (#4071)
  Move runtime to with_transaction in order to Rollback state changes (#4067)
  Update wasmtime config to match new version in substrate (#4063)
  Fix XCM Weights on Westend (#4066)
  Dispatchable XCMs should translate to v0 (#4062)
  Add xcm fuzzer (#3869)
  Bump trybuild from 1.0.49 to 1.0.50 (#4060)
  Companion PR for ss58 crate (#3953)
  overseer: simplify debugging some more (#4053)
  Bump thiserror from 1.0.29 to 1.0.30 (#4048)
  Bump strum from 0.21.0 to 0.22.0 (#4047)
  Add para pallets to polkadot benchmarks (#4045)
  Fixes broken docker link in docker descriptiob (#4043)
  Bump trybuild from 1.0.48 to 1.0.49 (#4039)
  ...
emostov pushed a commit that referenced this pull request Nov 1, 2021
…4067)

* Move runtime to with_transaction in order to Rollback state changes

* add assert_storage_noop to tests
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

filter_multi_dispute_data should use with_transaction
2 participants