Remove stop_gap param from Blockchain trait setup and sync functions

This commit is contained in:
Steve Myers
2021-07-15 12:04:03 -07:00
parent 7e986fd904
commit a5919f4ab0
10 changed files with 22 additions and 47 deletions

View File

@@ -53,7 +53,7 @@ pub trait ElectrumLikeSync {
fn electrum_like_setup<D: BatchDatabase, P: Progress>(
&self,
stop_gap: Option<usize>,
stop_gap: usize,
db: &mut D,
_progress_update: P,
) -> Result<(), Error> {
@@ -61,7 +61,6 @@ pub trait ElectrumLikeSync {
let start = Instant::new();
debug!("start setup");
let stop_gap = stop_gap.unwrap_or(20);
let chunk_size = stop_gap;
let mut history_txs_id = HashSet::new();