mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 09:21:04 +00:00
Make collation an optional return (#1787)
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 commit is contained in:
@@ -244,8 +244,8 @@ impl Ord for CommittedCandidateReceipt {
|
||||
/// Nevertheless, we expose it so the backing validators can validate the outputs of a
|
||||
/// candidate before voting to submit it to the relay-chain and so collators can
|
||||
/// collate candidates that satisfy the criteria implied these transient validation data.
|
||||
#[derive(PartialEq, Eq, Clone, Encode, Decode)]
|
||||
#[cfg_attr(feature = "std", derive(Debug, Default))]
|
||||
#[derive(PartialEq, Eq, Clone, Encode, Decode, RuntimeDebug)]
|
||||
#[cfg_attr(feature = "std", derive(Default))]
|
||||
pub struct ValidationData<N = BlockNumber> {
|
||||
/// The persisted validation data.
|
||||
pub persisted: PersistedValidationData<N>,
|
||||
|
||||
Reference in New Issue
Block a user