mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-22 04:25:42 +00:00
Download bodies when authorit nodes are syncing (#355)
This commit is contained in:
committed by
Gav Wood
parent
e9ddcac261
commit
94fcb9a262
@@ -81,7 +81,7 @@ impl<B: BlockT> ChainSync<B> {
|
|||||||
/// Create a new instance.
|
/// Create a new instance.
|
||||||
pub(crate) fn new(role: Roles, info: &ClientInfo<B>, import_queue: Arc<ImportQueue<B>>) -> Self {
|
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;
|
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;
|
required_block_attributes |= message::BlockAttributes::BODY;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user