From 16ba68bc1b0d510215006ab0fdf4f9813e2b1af0 Mon Sep 17 00:00:00 2001 From: Robin Salen Date: Sat, 20 Jul 2024 14:18:14 -0400 Subject: [PATCH] Serialize flaky inputs as 'json' files --- 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,