Pass relay_storage_root into ValidationParams (#2245)

Prior this commit, a PVF wasn't able to access this property.
This commit is contained in:
Sergei Shulepov
2021-01-11 20:29:04 +01:00
committed by GitHub
parent aedf089691
commit 6c3c7d54b0
5 changed files with 10 additions and 0 deletions
@@ -439,6 +439,7 @@ fn validate_candidate_exhaustive<B: ValidationBackend, S: SpawnNamed + 'static>(
parent_head: persisted_validation_data.parent_head.clone(),
block_data: pov.block_data.clone(),
relay_chain_height: persisted_validation_data.block_number,
relay_storage_root: persisted_validation_data.relay_storage_root,
dmq_mqc_head: persisted_validation_data.dmq_mqc_head,
hrmp_mqc_heads: persisted_validation_data.hrmp_mqc_heads.clone(),
};