@@ -29,8 +29,8 @@ use super::{
2929use crate :: try_and_log;
3030
3131pub struct UtreexodBackend {
32- pub use_external_sync : bool ,
33- pub external_sync_hostname : String ,
32+ pub use_batch_sync : bool ,
33+ pub batch_sync_hostname : String ,
3434 pub rpc : Arc < BTCDClient > ,
3535 pub chainstate : Arc < ChainState < KvChainStore > > ,
3636 pub term : Arc < AtomicBool > ,
@@ -181,7 +181,7 @@ impl UtreexodBackend {
181181 }
182182 #[ allow( unused) ]
183183 async fn process_batch_block ( & self ) -> Result < ( ) > {
184- let socket = TcpStream :: connect ( self . external_sync_hostname . to_owned ( ) . as_str ( ) ) ?;
184+ let socket = TcpStream :: connect ( self . batch_sync_hostname . to_owned ( ) . as_str ( ) ) ?;
185185
186186 let height = self . get_height ( ) ?;
187187 let current = self . chainstate . get_validation_index ( ) ?;
@@ -270,7 +270,7 @@ impl UtreexodBackend {
270270 try_and_log ! ( self . chainstate. flush( ) ) ;
271271 return ;
272272 }
273- if self . use_external_sync {
273+ if self . use_batch_sync {
274274 try_and_log ! ( self . process_batch_block( ) . await ) ;
275275 } else {
276276 try_and_log ! ( self . start_ibd( ) . await ) ;
0 commit comments