From: LLFourn Date: Fri, 5 Nov 2021 02:34:30 +0000 (+1100) Subject: Make stop_gap a parameter to EsploraBlockchainConfig::new X-Git-Tag: v0.15.0~10^2~1 X-Git-Url: http://internal-gitweb-vhost/script/%22https:/struct.CodeLengthError.html?a=commitdiff_plain;h=9c5770831de58760066dbbb26c0785632dde4991;p=bdk Make stop_gap a parameter to EsploraBlockchainConfig::new --- diff --git a/src/blockchain/esplora/mod.rs b/src/blockchain/esplora/mod.rs index 362cebe1..83c5c3dd 100644 --- a/src/blockchain/esplora/mod.rs +++ b/src/blockchain/esplora/mod.rs @@ -127,12 +127,12 @@ pub struct EsploraBlockchainConfig { impl EsploraBlockchainConfig { /// create a config with default values given the base url and stop gap - pub fn new(base_url: String) -> Self { + pub fn new(base_url: String, stop_gap: usize) -> Self { Self { base_url, proxy: None, timeout: None, - stop_gap: 20, + stop_gap, concurrency: None, } }