@@ -109,11 +109,10 @@ pub fn create_nyx_script(
109109 #[ cfg( not( feature = "nyx_log" ) ) ]
110110 let secondary_log = "" ;
111111
112- let asan_options = format ! ( "ASAN_OPTIONS={}" , asan_options ) ;
113- let crash_handler_preload = format ! ( "LD_PRELOAD=./{}" , crash_handler_name ) ;
112+ let asan_options = format ! ( "ASAN_OPTIONS={asan_options}" ) ;
113+ let crash_handler_preload = format ! ( "LD_PRELOAD=./{crash_handler_name}" ) ;
114114 let proxy_script = format ! (
115- "{} LD_LIBRARY_PATH=/tmp LD_BIND_NOW=1 {} ./bitcoind \\ $@{}" ,
116- asan_options, crash_handler_preload, primary_log
115+ "{asan_options} LD_LIBRARY_PATH=/tmp LD_BIND_NOW=1 {crash_handler_preload} ./bitcoind \\ $@{primary_log}" ,
117116 ) ;
118117
119118 script. push ( "echo \" #!/bin/sh\" > ./bitcoind_proxy" . to_string ( ) ) ;
@@ -122,13 +121,11 @@ pub fn create_nyx_script(
122121
123122 let secondary_arg = if let Some ( secondary_bitcoind) = secondary_bitcoind {
124123 let secondary_proxy_script = format ! (
125- "{} LD_LIBRARY_PATH=/tmp LD_BIND_NOW=1 {} ./{} \\ $@{}" ,
126- asan_options, crash_handler_preload, secondary_bitcoind, secondary_log
124+ "{asan_options} LD_LIBRARY_PATH=/tmp LD_BIND_NOW=1 {crash_handler_preload} ./{secondary_bitcoind} \\ $@{secondary_log}" ,
127125 ) ;
128126 script. push ( "echo \" #!/bin/sh\" > ./bitcoind2_proxy" . to_string ( ) ) ;
129127 script. push ( format ! (
130- "echo \" {}\" >> ./bitcoind2_proxy" ,
131- secondary_proxy_script
128+ "echo \" {secondary_proxy_script}\" >> ./bitcoind2_proxy"
132129 ) ) ;
133130 script. push ( "chmod +x ./bitcoind2_proxy" . to_string ( ) ) ;
134131 "./bitcoind2_proxy"
0 commit comments