File tree Expand file tree Collapse file tree
crates/madara/src/commands Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -189,9 +189,20 @@ fn populate_orchestrator_runner(
189189 ProverType :: Stwo => panic ! ( "Not supported yet" ) ,
190190 } ;
191191
192- let data = context ! {
193- PROVER_TYPE => prover,
194- MADARA_ORCHESTRATOR_MAX_BLOCK_NO_TO_PROCESS => config. orchestrator. maximum_block_to_process
192+ let max_block_to_process = config. orchestrator . maximum_block_to_process . map_or_else (
193+ || "" . to_string ( ) ,
194+ |val| format ! ( "--max-block-to-process {}" , val. to_string( ) ) ,
195+ ) ;
196+
197+ let data = if max_block_to_process. is_empty ( ) {
198+ context ! {
199+ PROVER_TYPE => prover
200+ }
201+ } else {
202+ context ! {
203+ PROVER_TYPE => prover,
204+ MADARA_ORCHESTRATOR_MAX_BLOCK_NO_TO_PROCESS => max_block_to_process
205+ }
195206 } ;
196207
197208 // Render the template
Original file line number Diff line number Diff line change @@ -27,4 +27,4 @@ sed -e "s/^MADARA_ORCHESTRATOR_GPS_VERIFIER_CONTRACT_ADDRESS=.*/MADARA_ORCHESTRA
2727./orchestrator setup --aws --aws-s3 --aws-sqs --aws-sns --aws-event-bridge --event-bridge-type {{ EVENT_BRIDGE_TYPE | default(" rule" ) }}
2828
2929# Orchestrator run
30- RUST_LOG=info ./orchestrator run --{{ PROVER_TYPE | default(" sharp" ) }} --{{ AWS_ENABLED | default(" aws" ) }} --{{ SETTLEMENT_NETWORK | default(" settle-on-ethereum" ) }} --aws-s3 --aws-sqs --aws-sns --{{ DA_NETWORK | default(" da-on-ethereum" ) }} --mongodb --min-block-to-process {{ LAST_BLOCK_NUMBER }} --max-block-to-process {{ MADARA_ORCHESTRATOR_MAX_BLOCK_NO_TO_PROCESS }}
30+ RUST_LOG=info ./orchestrator run --{{ PROVER_TYPE | default(" sharp" ) }} --{{ AWS_ENABLED | default(" aws" ) }} --{{ SETTLEMENT_NETWORK | default(" settle-on-ethereum" ) }} --aws-s3 --aws-sqs --aws-sns --{{ DA_NETWORK | default(" da-on-ethereum" ) }} --mongodb --min-block-to-process $ LAST_BLOCK_NUMBER {{ MADARA_ORCHESTRATOR_MAX_BLOCK_NO_TO_PROCESS | default( " " ) }}
You can’t perform that action at this time.
0 commit comments