From e3602e17148463be7f84c9c5b840b121dccdbcfa Mon Sep 17 00:00:00 2001 From: Robin Salen <30937548+Nashtare@users.noreply.github.com> Date: Mon, 22 Jul 2024 21:58:54 +0900 Subject: [PATCH] Serialize flaky inputs as 'json' files (#420) --- zero_bin/ops/src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/zero_bin/ops/src/lib.rs b/zero_bin/ops/src/lib.rs index eca3f8013..ee369bbac 100644 --- a/zero_bin/ops/src/lib.rs +++ b/zero_bin/ops/src/lib.rs @@ -34,7 +34,7 @@ impl Operation for TxProof { .map_err(|err| { if let Err(write_err) = save_inputs_to_disk( format!( - "b{}_txn_{}_input.log", + "b{}_txn_{}_input.json", input.block_metadata.block_number, input.txn_number_before ), input, @@ -69,7 +69,7 @@ impl Operation for TxProof { .map_err(|err| { if let Err(write_err) = save_inputs_to_disk( format!( - "b{}_txn_{}_input.log", + "b{}_txn_{}_input.json", input.block_metadata.block_number, input.txn_number_before ), input, @@ -171,7 +171,7 @@ impl Monoid for AggProof { ]; if let Err(write_err) = save_inputs_to_disk( format!( - "b{}_agg_lhs_rhs_inputs.log", + "b{}_agg_lhs_rhs_inputs.json", pv[0].block_metadata.block_number ), pv, @@ -208,7 +208,7 @@ impl Operation for BlockProof { if self.save_inputs_on_error { if let Err(write_err) = save_inputs_to_disk( format!( - "b{}_block_input.log", + "b{}_block_input.json", input.p_vals.block_metadata.block_number ), input.p_vals,