diff --git a/polkadot/node/collation-generation/src/lib.rs b/polkadot/node/collation-generation/src/lib.rs index f5cd7da282280d6770e2452896cd1c307c9fb9a4..271d73999fc862ccb03b051169f90dc5c8da1840 100644 --- a/polkadot/node/collation-generation/src/lib.rs +++ b/polkadot/node/collation-generation/src/lib.rs @@ -272,7 +272,6 @@ async fn handle_new_activations<Context: SubsystemContext>( }; let commitments = CandidateCommitments { - fees: collation.fees, upward_messages: collation.upward_messages, new_validation_code: collation.new_validation_code, head_data: collation.head_data, @@ -381,7 +380,6 @@ mod tests { fn test_collation() -> Collation { Collation { - fees: Default::default(), upward_messages: Default::default(), new_validation_code: Default::default(), head_data: Default::default(), diff --git a/polkadot/node/core/backing/src/lib.rs b/polkadot/node/core/backing/src/lib.rs index ca17d26acfdb2f7c9a231a43049453ac2d3b779c..9b3102d97b97e35335efb12353a73586439fdca4 100644 --- a/polkadot/node/core/backing/src/lib.rs +++ b/polkadot/node/core/backing/src/lib.rs @@ -677,7 +677,6 @@ impl CandidateBackingJob { let erasure_root = branches.root(); let commitments = CandidateCommitments { - fees: outputs.fees, upward_messages: outputs.upward_messages, erasure_root, new_validation_code: outputs.new_validation_code, @@ -1160,7 +1159,6 @@ mod tests { ValidationResult::Valid(ValidationOutputs { head_data: expected_head_data.clone(), upward_messages: Vec::new(), - fees: Default::default(), new_validation_code: None, processed_downward_messages: 0, }, test_state.validation_data.persisted), @@ -1280,7 +1278,6 @@ mod tests { ValidationResult::Valid(ValidationOutputs { head_data: expected_head_data.clone(), upward_messages: Vec::new(), - fees: Default::default(), new_validation_code: None, processed_downward_messages: 0, }, test_state.validation_data.persisted), @@ -1419,7 +1416,6 @@ mod tests { ValidationResult::Valid(ValidationOutputs { head_data: expected_head_data.clone(), upward_messages: Vec::new(), - fees: Default::default(), new_validation_code: None, processed_downward_messages: 0, }, test_state.validation_data.persisted), @@ -1575,7 +1571,6 @@ mod tests { ValidationResult::Valid(ValidationOutputs { head_data: expected_head_data.clone(), upward_messages: Vec::new(), - fees: Default::default(), new_validation_code: None, processed_downward_messages: 0, }, test_state.validation_data.persisted), diff --git a/polkadot/node/core/candidate-selection/src/lib.rs b/polkadot/node/core/candidate-selection/src/lib.rs index 8452558ec1a5a2573cd1850c26054c89926d3e02..4399a90f599496620503fd8325b50ed9b0dd1480 100644 --- a/polkadot/node/core/candidate-selection/src/lib.rs +++ b/polkadot/node/core/candidate-selection/src/lib.rs @@ -492,7 +492,6 @@ mod tests { ValidationOutputs { head_data: HeadData(head_data), upward_messages: Vec::new(), - fees: 0, new_validation_code: None, processed_downward_messages: 0, }, diff --git a/polkadot/node/core/candidate-validation/src/lib.rs b/polkadot/node/core/candidate-validation/src/lib.rs index 75cf8a67be36ab49666f4c644758d8781376deeb..360257ae32b1af3338f4f0ca9e4fcd0f3ce56ddd 100644 --- a/polkadot/node/core/candidate-validation/src/lib.rs +++ b/polkadot/node/core/candidate-validation/src/lib.rs @@ -490,7 +490,6 @@ fn validate_candidate_exhaustive<B: ValidationBackend, S: SpawnNamed + 'static>( let outputs = ValidationOutputs { head_data: res.head_data, upward_messages: res.upward_messages, - fees: 0, new_validation_code: res.new_validation_code, processed_downward_messages: res.processed_downward_messages, }; @@ -850,7 +849,6 @@ mod tests { assert_matches!(v, ValidationResult::Valid(outputs, used_validation_data) => { assert_eq!(outputs.head_data, HeadData(vec![1, 1, 1])); assert_eq!(outputs.upward_messages, Vec::new()); - assert_eq!(outputs.fees, 0); assert_eq!(outputs.new_validation_code, Some(vec![2, 2, 2].into())); assert_eq!(used_validation_data, validation_data); }); diff --git a/polkadot/node/primitives/src/lib.rs b/polkadot/node/primitives/src/lib.rs index c8de99f4b89dd983ecb6c8c2980f57caf78a6eb2..ddcec114ebe2510f9d147742e82da1b101792acf 100644 --- a/polkadot/node/primitives/src/lib.rs +++ b/polkadot/node/primitives/src/lib.rs @@ -27,7 +27,7 @@ use parity_scale_codec::{Decode, Encode}; use polkadot_primitives::v1::{ Hash, CommittedCandidateReceipt, CandidateReceipt, CompactStatement, EncodeAs, Signed, SigningContext, ValidatorIndex, ValidatorId, - UpwardMessage, Balance, ValidationCode, PersistedValidationData, ValidationData, + UpwardMessage, ValidationCode, PersistedValidationData, ValidationData, HeadData, PoV, CollatorPair, Id as ParaId, ValidationOutputs, }; use polkadot_statement_table::{ @@ -253,8 +253,6 @@ impl std::convert::TryFrom<FromTableMisbehavior> for MisbehaviorReport { /// - contains a proof of validity. #[derive(Clone, Encode, Decode)] pub struct Collation { - /// Fees paid from the chain to the relay chain validators. - pub fees: Balance, /// Messages destined to be interpreted by the Relay chain itself. pub upward_messages: Vec<UpwardMessage>, /// New validation code. diff --git a/polkadot/primitives/src/v1.rs b/polkadot/primitives/src/v1.rs index 3fbb5957308a73c00ccde45f3f62b987bcc5fafa..66a93a6bece8127d4962df1d8195f3529c639caa 100644 --- a/polkadot/primitives/src/v1.rs +++ b/polkadot/primitives/src/v1.rs @@ -318,8 +318,6 @@ pub struct ValidationOutputs { pub head_data: HeadData, /// Upward messages to the relay chain. pub upward_messages: Vec<UpwardMessage>, - /// Fees paid to the validators of the relay-chain. - pub fees: Balance, /// The new validation code submitted by the execution, if any. pub new_validation_code: Option<ValidationCode>, /// The number of messages processed from the DMQ. @@ -330,8 +328,6 @@ pub struct ValidationOutputs { #[derive(PartialEq, Eq, Clone, Encode, Decode)] #[cfg_attr(feature = "std", derive(Debug, Default, Hash))] pub struct CandidateCommitments { - /// Fees paid from the chain to the relay chain validators. - pub fees: Balance, /// Messages destined to be interpreted by the Relay chain itself. pub upward_messages: Vec<UpwardMessage>, /// The root of a block's erasure encoding Merkle tree. diff --git a/polkadot/roadmap/implementers-guide/src/node/collators/collation-generation.md b/polkadot/roadmap/implementers-guide/src/node/collators/collation-generation.md index 5863a4989ef44a771754321e54cf421a1242f9b9..15b510baeaaa47ee1290252d1e98f3c0c0b712a7 100644 --- a/polkadot/roadmap/implementers-guide/src/node/collators/collation-generation.md +++ b/polkadot/roadmap/implementers-guide/src/node/collators/collation-generation.md @@ -22,8 +22,6 @@ The process of generating a collation for a parachain is very parachain-specific ```rust pub struct Collation { - /// Fees paid from the chain to the relay chain validators. - pub fees: Balance, /// Messages destined to be interpreted by the Relay chain itself. pub upward_messages: Vec<UpwardMessage>, /// New validation code. diff --git a/polkadot/roadmap/implementers-guide/src/types/candidate.md b/polkadot/roadmap/implementers-guide/src/types/candidate.md index 750f00865ef3bce6dad974d9dec4581052b8afee..9d6776332bade055d67da3b67e2e8e7261a14b8c 100644 --- a/polkadot/roadmap/implementers-guide/src/types/candidate.md +++ b/polkadot/roadmap/implementers-guide/src/types/candidate.md @@ -247,8 +247,6 @@ The execution and validation of parachain or parathread candidates produces a nu #[derive(PartialEq, Eq, Clone, Encode, Decode)] #[cfg_attr(feature = "std", derive(Debug, Default))] struct CandidateCommitments { - /// Fees paid from the chain to the relay chain validators. - fees: Balance, /// Messages directed to other paras routed via the relay chain. horizontal_messages: Vec<OutboundHrmpMessage>, /// Messages destined to be interpreted by the Relay chain itself. @@ -293,8 +291,6 @@ struct ValidationOutputs { horizontal_messages: Vec<OutboundHrmpMessage>, /// Upwards messages to the relay chain. upwards_messages: Vec<UpwardsMessage>, - /// Fees paid to the validators of the relay-chain. - fees: Balance, /// The new validation code submitted by the execution, if any. new_validation_code: Option<ValidationCode>, /// The number of messages processed from the DMQ.