@@ -29,7 +29,8 @@ pub struct SettingsFromFile {
2929 pub bitcoind_rpc_endpoint : Option < String > ,
3030 pub strata_endpoint : String ,
3131 pub faucet_endpoint : String ,
32- pub mempool_endpoint : String ,
32+ pub mempool_endpoint : Option < String > ,
33+ pub blockscout_endpoint : Option < String > ,
3334 pub bridge_pubkey : Option < Hex < [ u8 ; 32 ] > > ,
3435 pub network : Option < Network > ,
3536}
@@ -44,7 +45,8 @@ pub struct Settings {
4445 pub faucet_endpoint : String ,
4546 pub bridge_musig2_pubkey : XOnlyPublicKey ,
4647 pub descriptor_db : PathBuf ,
47- pub mempool_endpoint : String ,
48+ pub mempool_space_endpoint : Option < String > ,
49+ pub blockscout_endpoint : Option < String > ,
4850 pub bridge_strata_address : StrataAddress ,
4951 pub linux_seed_file : PathBuf ,
5052 pub network : Network ,
@@ -106,7 +108,6 @@ impl Settings {
106108 strata_endpoint : from_file. strata_endpoint ,
107109 data_dir : proj_dirs. data_dir ( ) . to_owned ( ) ,
108110 faucet_endpoint : from_file. faucet_endpoint ,
109- mempool_endpoint : from_file. mempool_endpoint ,
110111 bridge_musig2_pubkey : XOnlyPublicKey :: from_slice ( & match from_file. bridge_pubkey {
111112 Some ( key) => key. 0 ,
112113 None => {
@@ -116,12 +117,14 @@ impl Settings {
116117 }
117118 } )
118119 . expect ( "valid length" ) ,
119- config_file : CONFIG_FILE . clone ( ) ,
120- network : from_file. network . unwrap_or ( DEFAULT_NETWORK ) ,
121120 descriptor_db : descriptor_file,
121+ mempool_space_endpoint : from_file. mempool_endpoint ,
122+ blockscout_endpoint : from_file. blockscout_endpoint ,
122123 bridge_strata_address : StrataAddress :: from_str ( BRIDGE_STRATA_ADDRESS )
123124 . expect ( "valid strata address" ) ,
124125 linux_seed_file,
126+ network : from_file. network . unwrap_or ( DEFAULT_NETWORK ) ,
127+ config_file : CONFIG_FILE . clone ( ) ,
125128 signet_backend : sync_backend,
126129 } )
127130 }
0 commit comments