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

Make collation an optional return #1787

Merged
merged 1 commit into from
Oct 6, 2020
Merged

Make collation an optional return #1787

merged 1 commit into from
Oct 6, 2020

Conversation

bkchr
Copy link
Member

@bkchr bkchr commented Oct 6, 2020

This pr changes the collator interface function to return an optional
collation instead of a collation. This is required as the parachain
itself can fail to generate a valid collation for various reason. Now if
the collation fails it will return None.

Besides that the pr adds some RuntimeDebug derive for ValidationData
and removes some whitespaces.

This pr changes the collator interface function to return an optional
collation instead of a collation. This is required as the parachain
itself can fail to generate a valid collation for various reason. Now if
the collation fails it will return `None`.

Besides that the pr adds some `RuntimeDebug` derive for `ValidationData`
and removes some whitespaces.
@bkchr bkchr added A2-insubstantial Pull request requires no code review (e.g., a sub-repository hash update). Q2-easy C1-low PR touches the given topic and has a low impact on builders. B0-silent Changes should not be mentioned in any release notes and removed Q2-easy labels Oct 6, 2020
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.

This is as we discussed in Element. I do not object to using Option here instead of Result.

@bkchr bkchr merged commit ce0fa3a into master Oct 6, 2020
@bkchr bkchr deleted the bkchr-cumulus-stuff branch October 6, 2020 09:57
ordian added a commit that referenced this pull request Oct 6, 2020
* master:
  Make collation an optional return (#1787)
  XCM: Land xcm-handler and xcm-executor (#1771)
  v0.8.25 (#1785)
  add two node local net script (#1781)
  Adjust max nominators down to 128 (from 256) (#1782)
  Companion for substrate/pull/7215 (#1768)
  Remove Stale Upgrades (#1780)
  Update Polkadot Weights for Substrate 2.0 (#1761)
  Parachains v1 registrar module. (#1559)
  Derive `From` for `AllMessages` and simplify `send_msg` (#1774)
  implement remaining subsystem metrics (#1770)
  Companion for paritytech/substrate#7236 (#1773)
  WIP: remove deprecated only/except clauses, build is now manual on PRs (#1769)
  Increase Westend `spec_version` (#1766)
  move Metrics to utils (#1765)
ordian added a commit that referenced this pull request Oct 6, 2020
* master:
  NetworkBridge: validator (authorities) discovery api (#1699)
  Registrar v1 follow-ups (#1786)
  Make collation an optional return (#1787)
  XCM: Land xcm-handler and xcm-executor (#1771)
  v0.8.25 (#1785)
  add two node local net script (#1781)
  Adjust max nominators down to 128 (from 256) (#1782)
  Companion for substrate/pull/7215 (#1768)
  Remove Stale Upgrades (#1780)
  Update Polkadot Weights for Substrate 2.0 (#1761)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
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.

2 participants