paritytech / polkadot-sdk

The Parity Polkadot Blockchain SDK
https://polkadot.network/
1.64k stars 580 forks source link

slot-based-collator: Collation & block-builder communication #3966

Open skunert opened 3 months ago

skunert commented 3 months ago

Collation and block-builder task in the parachain node should be able to communicate with each other:

bkchr commented 3 months ago

Both things you are mentioning here sound like things that should be done naturally in the block builder task.

  • Collation task can tell block-builder to stop building if we are not able to submit collations for a while

The block builder needs to check any way what is the latest candidate to build upon on. If the parachain build too many blocks ahead, it can not continue building. This is basically the "signal" that we didn't submit collations or similar.