Skip to content
Snippets Groups Projects
Commit 6ccdbea0 authored by Pierre Krieger's avatar Pierre Krieger Committed by Gavin Wood
Browse files

Move extra_requests.rs as a submodule of sync (#2573)

parent 580432d8
No related merge requests found
......@@ -30,7 +30,6 @@ mod protocol;
mod chain;
mod blocks;
mod on_demand;
mod extra_requests;
mod util;
pub mod config;
pub mod consensus_gossip;
......
......@@ -39,13 +39,15 @@ use client::{BlockStatus, ClientInfo};
use consensus::{BlockOrigin, import_queue::{IncomingBlock, SharedFinalityProofRequestBuilder}};
use client::error::Error as ClientError;
use crate::blocks::BlockCollection;
use crate::extra_requests::ExtraRequestsAggregator;
use crate::sync::extra_requests::ExtraRequestsAggregator;
use runtime_primitives::traits::{Block as BlockT, Header as HeaderT, As, NumberFor, Zero, CheckedSub};
use runtime_primitives::{Justification, generic::BlockId};
use crate::message;
use crate::config::Roles;
use std::collections::HashSet;
mod extra_requests;
// Maximum blocks to request in a single packet.
const MAX_BLOCKS_TO_REQUEST: usize = 128;
// Maximum blocks to store in the import queue.
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment