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

guide: validation data refactoring #1576

Merged
5 commits merged into from
Aug 13, 2020
Merged

guide: validation data refactoring #1576

5 commits merged into from
Aug 13, 2020

Conversation

rphmeier
Copy link
Contributor

related to #1539

implementation following in another PR

@rphmeier rphmeier added the A0-please_review Pull request needs code review. label Aug 12, 2020
@pepyakin pepyakin 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 Aug 13, 2020
roadmap/implementers-guide/src/types/candidate.md Outdated Show resolved Hide resolved
roadmap/implementers-guide/src/types/candidate.md Outdated Show resolved Hide resolved
roadmap/implementers-guide/src/types/candidate.md Outdated Show resolved Hide resolved
roadmap/implementers-guide/src/types/candidate.md Outdated Show resolved Hide resolved
roadmap/implementers-guide/src/types/candidate.md Outdated Show resolved Hide resolved
roadmap/implementers-guide/src/runtime-api/README.md Outdated Show resolved Hide resolved
@@ -35,9 +35,6 @@ fn update_configuration(f: impl FnOnce(&mut HostConfiguration)) {
*pending = Some(x);
})
}

/// Get the GlobalValidationData, assuming the context is the parent block.
fn global_validation_data() -> GlobalValidationData;
Copy link
Contributor

Choose a reason for hiding this comment

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

local_validation_data was queried from paras.md. global_validation_data was declared here, in configuration.md.

In the presented changes, persisted_validation_data is queried from paras.md but where do I query full_validation_data to implement the runtime API call with the same name?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The runtime API will need to draw this information out from many different modules. It wasn't obvious where its home should be.

Copy link
Contributor

Choose a reason for hiding this comment

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

yeah I actually was triggered by that: it wasn't for me where would be the home and then I thought that the chances are it might be not obvious for the implementer either.

but that's fine, we can figure out this later

@pepyakin
Copy link
Contributor

Apart from the above, there is also collation-generation.md:

  • Use the Runtime API subsystem to fetch the global validation data and local validation data.

Co-authored-by: Bernhard Schuster <bernhard@ahoi.io>
Copy link
Contributor

@drahnr drahnr left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@coriolinus coriolinus left a comment

Choose a reason for hiding this comment

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

Looks good, modulo a few nits.

roadmap/implementers-guide/src/types/availability.md Outdated Show resolved Hide resolved
roadmap/implementers-guide/src/types/candidate.md Outdated Show resolved Hide resolved
@rphmeier
Copy link
Contributor Author

I like transient a lot better. I was hoping someone would bikeshed this!

@rphmeier
Copy link
Contributor Author

bot merge

@ghost
Copy link

ghost commented Aug 13, 2020

Waiting for commit status.

@ghost ghost merged commit ae69d7a into master Aug 13, 2020
@ghost ghost deleted the rh-validation-data-refactor branch August 13, 2020 14:22
ordian added a commit that referenced this pull request Aug 14, 2020
* master:
  Make parachain validation wasm executor functional (#1574)
  Use async test helper to simplify node testing (#1578)
  guide: validation data refactoring (#1576)
  Remove v0 parachains runtime (#1501)
  [CI] Add github token to generate-release-text (#1581)
  Allow using any polkadot client instead of enum Client (#1575)
  service/src/lib: Update authority discovery construction (#1563)
  Update .editorconfig to what we have in practice (#1545)
  Companion PR for substrate #6672 (#1560)
  pre-redenomination tockenSymbol change (#1561)
ordian added a commit that referenced this pull request Aug 17, 2020
…n-race-condition

* master:
  Companion PR for #6862 (#1564)
  implement collation generation subsystem (#1557)
  Add spawn_blocking to SubsystemContext (#1570)
  Companion PR for #6846 (#1568)
  overseer: add a test to ensure all subsystem receive msgs (#1590)
  Implementer's Guide: Flesh out more details for upward messages (#1556)
  Make parachain validation wasm executor functional (#1574)
  Use async test helper to simplify node testing (#1578)
  guide: validation data refactoring (#1576)
  Remove v0 parachains runtime (#1501)
  [CI] Add github token to generate-release-text (#1581)
  Allow using any polkadot client instead of enum Client (#1575)
  service/src/lib: Update authority discovery construction (#1563)
ordian added a commit that referenced this pull request Aug 17, 2020
* master:
  overseer: fix build (#1596)
  Companion PR for #6862 (#1564)
  implement collation generation subsystem (#1557)
  Add spawn_blocking to SubsystemContext (#1570)
  Companion PR for #6846 (#1568)
  overseer: add a test to ensure all subsystem receive msgs (#1590)
  Implementer's Guide: Flesh out more details for upward messages (#1556)
  Make parachain validation wasm executor functional (#1574)
  Use async test helper to simplify node testing (#1578)
  guide: validation data refactoring (#1576)
  Remove v0 parachains runtime (#1501)
  [CI] Add github token to generate-release-text (#1581)
  Allow using any polkadot client instead of enum Client (#1575)
  service/src/lib: Update authority discovery construction (#1563)
  Update .editorconfig to what we have in practice (#1545)
  Companion PR for substrate #6672 (#1560)
  pre-redenomination tockenSymbol change (#1561)
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants