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

Companion PR for #7136 (WeightInfo for Session / Offences) #1735

Merged
7 commits merged into from
Sep 21, 2020

Conversation

shawntabrizi
Copy link
Member

@shawntabrizi shawntabrizi commented Sep 20, 2020

This is a simple PR that removes the WeightInfo trade for pallet_offences (as the weight information should come from the different implementations of OnOffence.

paritytech/substrate#7136

@ghost
Copy link

ghost commented Sep 21, 2020

Waiting for commit status.

@shawntabrizi shawntabrizi added 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. labels Sep 21, 2020
@ghost
Copy link

ghost commented Sep 21, 2020

Head SHA changed; merge aborted.

@shawntabrizi shawntabrizi added the A2-insubstantial Pull request requires no code review (e.g., a sub-repository hash update). label Sep 21, 2020
@@ -57,31 +56,6 @@ fn weight_of_system_set_code_is_correct() {
assert_eq!(weight, expected_weight);
}

#[test]
Copy link
Member Author

Choose a reason for hiding this comment

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

We remove these tests because the weights no longer come from downstream Substrate, but we define them locally in the Repo.

Copy link
Contributor

@andresilva andresilva left a comment

Choose a reason for hiding this comment

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

Shouldn't we be defining WeightInfo for pallet_session in this PR?

@gui1117
Copy link
Contributor

gui1117 commented Sep 21, 2020

Shouldn't we be defining WeightInfo for pallet_session in this PR?

At least it should be done before next release

@expenses
Copy link
Contributor

Shouldn't we be defining WeightInfo for pallet_session in this PR?

@shawntabrizi 😬 lets do this and get this merged, please!

@shawntabrizi
Copy link
Member Author

It will be done all in one final PR to avoid back to back merge conflicts. Even if we dont, the values we get for substrate would be fine anyway. (but it will be done)

@shawntabrizi
Copy link
Member Author

bot merge

@ghost
Copy link

ghost commented Sep 21, 2020

Trying merge.

@ghost ghost merged commit 745b571 into master Sep 21, 2020
@ghost ghost deleted the shawntabrizi-session-weightinfo branch September 21, 2020 11:25
ordian added a commit that referenced this pull request Sep 22, 2020
* master:
  Companion for 7155 (WeightInfo for Babe and Grandpa) (#1736)
  Companion PR for #7136 (WeightInfo for Session / Offences) (#1735)
  Bump jsonrpc-core to v15 (#1737)
  Companion PR for #6215 (#1654)
  Companion PR for #7138 (WeightInfo for Scheduler) (#1734)
  Companion PR for Bounties #5715 (#1336)
ordian added a commit that referenced this pull request Sep 23, 2020
* master:
  Update to substrate 2.0 (#1744)
  Companion: Handle construct_runtime breaking change. (#1692)
  Companion for `ModuleToIndex` to `PalletInfo` rename (#1743)
  Companion for substrate/pull/7161 (#1739)
  Companion for 7155 (WeightInfo for Babe and Grandpa) (#1736)
  Companion PR for #7136 (WeightInfo for Session / Offences) (#1735)
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. A2-insubstantial Pull request requires no code review (e.g., a sub-repository hash update). 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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants