Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Draft collator side changes
Browse files Browse the repository at this point in the history
  • Loading branch information
slumber committed Jul 12, 2022
1 parent 88be445 commit 8718ba1
Show file tree
Hide file tree
Showing 7 changed files with 311 additions and 95 deletions.
10 changes: 8 additions & 2 deletions node/collation-generation/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ async fn handle_new_activations<Context>(
"collation-builder",
Box::pin(async move {
let persisted_validation_data_hash = validation_data.hash();
let parent_head_data_hash = validation_data.parent_head.hash();

let (collation, result_sender) =
match (task_config.collator)(relay_parent, &validation_data).await {
Expand Down Expand Up @@ -385,8 +386,13 @@ async fn handle_new_activations<Context>(

if let Err(err) = task_sender
.send(
CollatorProtocolMessage::DistributeCollation(ccr, pov, result_sender)
.into(),
CollatorProtocolMessage::DistributeCollation(
ccr,
parent_head_data_hash,
pov,
result_sender,
)
.into(),
)
.await
{
Expand Down
Loading

0 comments on commit 8718ba1

Please sign in to comment.