Download bodies when authorit nodes are syncing (#355)

This commit is contained in:
Arkadiy Paronyan
2018-07-17 21:48:51 +02:00
committed by Gav Wood
parent e9ddcac261
commit 94fcb9a262
+1 -1
View File
@@ -81,7 +81,7 @@ impl<B: BlockT> ChainSync<B> {
/// Create a new instance.
pub(crate) fn new(role: Roles, info: &ClientInfo<B>, import_queue: Arc<ImportQueue<B>>) -> Self {
let mut required_block_attributes = message::BlockAttributes::HEADER | message::BlockAttributes::JUSTIFICATION;
if role.intersects(Roles::FULL) {
if role.intersects(Roles::FULL | Roles::AUTHORITY) {
required_block_attributes |= message::BlockAttributes::BODY;
}