Pass relay parent as argument when collating (#1789)

This pr changes the collation function to also pass the current relay
parent the parachain block should be build on.
This commit is contained in:
Bastian Köcher authored and GitHub committed 2020-10-06 18:37:19 +00:00
1 parent d00bdfef08
commit 325c24580e
4 files changed
+12 -5

No files matched your search

+1 -1
View File
@@ -1876,7 +1876,7 @@ mod tests {
fn test_collator_generation_msg() -> CollationGenerationMessage {
CollationGenerationMessage::Initialize(CollationGenerationConfig {
key: CollatorPair::generate().0,
collator: Box::new(|_| Box::new(TestCollator)),
collator: Box::new(|_, _| Box::new(TestCollator)),
para_id: Default::default(),
})
}