Integrate ChainApi with all messages (#1533)

* propagate chain_api subsystem through various locations

* add ChainApi to AllMessages

Co-authored-by: Peter Goodspeed-Niklaus <peter.r.goodspeedniklaus@gmail.com>
This commit is contained in:
Andronik Ordian
2020-08-04 14:32:42 +02:00
committed by GitHub
parent 5a4bca765e
commit 07a9d2de3f
5 changed files with 43 additions and 8 deletions
+3 -1
View File
@@ -310,7 +310,7 @@ pub enum ChainApiMessage {
hash: Hash,
/// The number of ancestors to request.
k: usize,
/// The response channel.
/// The response channel.
response_channel: ChainApiResponseChannel<Vec<Hash>>,
},
}
@@ -488,6 +488,8 @@ pub enum AllMessages {
CandidateBacking(CandidateBackingMessage),
/// Message for the candidate selection subsystem.
CandidateSelection(CandidateSelectionMessage),
/// Message for the Chain API subsystem.
ChainApi(ChainApiMessage),
/// Message for the statement distribution subsystem.
StatementDistribution(StatementDistributionMessage),
/// Message for the availability distribution subsystem.