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

remove provisioner checks #4254

Merged
merged 16 commits into from
Nov 19, 2021

Conversation

drahnr
Copy link
Contributor

@drahnr drahnr commented Nov 10, 2021

Remove the node-side checks that now exist as part of the runtime.

Complements and requires #4028

Closes #3989

skip check-dependent-cumulus

@drahnr drahnr force-pushed the bernhard-remove-provisioner-checks branch from 0ebde42 to db42146 Compare November 10, 2021 14:28
@drahnr drahnr added A3-in_progress Pull request is in progress. No review needed at this stage. 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 Nov 10, 2021
@drahnr drahnr force-pushed the bernhard-remove-provisioner-checks branch from 29b0374 to ed45994 Compare November 10, 2021 15:53
@drahnr drahnr self-assigned this Nov 11, 2021
Co-authored-by: Zeke Mostov <z.mostov@gmail.com>
Copy link
Contributor

@emostov emostov left a comment

Choose a reason for hiding this comment

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

The code itself looks good. But in the future I wonder if there would be a performance optimization to share the sanitize_* functions between the provisioner and the runtime.

From my understanding, all the filtering in the runtime will be running in wasm, were as if we do filtering in the node it will run in native. If we can consistently decrease the inherent data size before it hits the wasm runtime I wonder if we would get some performance gains?

@ordian
Copy link
Member

ordian commented Nov 19, 2021

Any implementer's guide updates?

@drahnr
Copy link
Contributor Author

drahnr commented Nov 19, 2021

Amended the guide. Added another trivial check to bound the fn create_inherent work a little bit for almost zero additional cost (nice to have).

node/core/provisioner/src/metrics.rs Outdated Show resolved Hide resolved
node/core/provisioner/src/metrics.rs Outdated Show resolved Hide resolved
drahnr and others added 3 commits November 19, 2021 18:35
Co-authored-by: Andronik Ordian <write@reusable.software>
Co-authored-by: Andronik Ordian <write@reusable.software>
Co-authored-by: Andronik Ordian <write@reusable.software>
@ordian
Copy link
Member

ordian commented Nov 19, 2021

bot merge

@paritytech-processbot
Copy link

Waiting for commit status.

@paritytech-processbot paritytech-processbot bot merged commit 71e7670 into master Nov 19, 2021
@paritytech-processbot paritytech-processbot bot deleted the bernhard-remove-provisioner-checks branch November 19, 2021 18:16
ordian added a commit that referenced this pull request Nov 20, 2021
* master: (38 commits)
  Replicate Rob's PR (#4337)
  Companion for Taskmanager: Remove `clean_shutdown` (#4336)
  prefer code upgrades in inherent filtering (#4334)
  remove provisioner checks (#4254)
  Log para inherent inputs (#4331)
  Dispute spam protection (#4134)
  Dependabot: Ignore sub-tokens (#4328)
  export hrmp config (#4324)
  Add missing license header (#4321)
  Use non-empty validation code (#4322)
  fix pallet-xcm extrinsic doc comments (#4317)
  prepare worker: Catch unexpected unwinds (#4304)
  Enable BEEFY explicitly (#4320)
  Bump serde_json from 1.0.70 to 1.0.71 (#4316)
  Bump strum from 0.22.0 to 0.23.0 (#4308)
  Remove sort_unstable_by (#4314)
  Bump tokio from 1.13.0 to 1.14.0 (#4298)
  Substrate companion: Authority discovery multiple peer ids (#4295)
  Companion for substrate#9878 (#3949)
  move paras inherent filtering to runtime (#4028)
  ...
Lldenaurois added a commit that referenced this pull request Nov 25, 2021
Lldenaurois added a commit that referenced this pull request Nov 29, 2021
paritytech-processbot bot pushed a commit that referenced this pull request Nov 30, 2021
* Revert "remove provisioner checks (#4254)"

This reverts commit 71e7670.

* Remove TODO in implementer's guide
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A3-in_progress Pull request is in progress. No review needed at this stage. 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.

Refactor inherent filtering to be contained completely in the runtime
4 participants