mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-21 23:45:40 +00:00
Add dispute types and change InclusionInherent to ParasInherent (#2791)
* dispute types * add Debug to dispute primitives in std and InherentData * use ParachainsInherentData on node-side * change inclusion_inherent to paras_inherent * RuntimeDebug * add type parameter to PersistedValidationData users * fix test client * spaces * fix collation-generation test * fix provisioner tests * remove references to inclusion inherent
This commit is contained in:
committed by
GitHub
parent
7a2e1ef6c1
commit
0794f69306
@@ -296,12 +296,16 @@ async fn send_inherent_data(
|
||||
candidates,
|
||||
relay_parent,
|
||||
from_job,
|
||||
)
|
||||
.await?;
|
||||
).await?;
|
||||
|
||||
let inherent_data = ProvisionerInherentData {
|
||||
bitfields,
|
||||
backed_candidates: candidates,
|
||||
disputes: Vec::new(), // until disputes are implemented.
|
||||
};
|
||||
|
||||
let res = (bitfields, candidates);
|
||||
for return_sender in return_senders {
|
||||
return_sender.send(res.clone()).map_err(|_data| Error::InherentDataReturnChannel)?;
|
||||
return_sender.send(inherent_data.clone()).map_err(|_data| Error::InherentDataReturnChannel)?;
|
||||
}
|
||||
|
||||
Ok(())
|
||||
|
||||
@@ -342,7 +342,7 @@ mod select_candidates {
|
||||
let mock_cores = mock_availability_cores();
|
||||
let n_cores = mock_cores.len();
|
||||
|
||||
let empty_hash = PersistedValidationData::<BlockNumber>::default().hash();
|
||||
let empty_hash = PersistedValidationData::<Hash, BlockNumber>::default().hash();
|
||||
|
||||
let candidate_template = CandidateReceipt {
|
||||
descriptor: CandidateDescriptor {
|
||||
@@ -415,7 +415,7 @@ mod select_candidates {
|
||||
let mock_cores = mock_availability_cores();
|
||||
let n_cores = mock_cores.len();
|
||||
|
||||
let empty_hash = PersistedValidationData::<BlockNumber>::default().hash();
|
||||
let empty_hash = PersistedValidationData::<Hash, BlockNumber>::default().hash();
|
||||
|
||||
// why those particular indices? see the comments on mock_availability_cores()
|
||||
// the first candidate with code is included out of [1, 4, 7, 8, 10].
|
||||
|
||||
Reference in New Issue
Block a user