Skip to content

Commit

Permalink
Serialize flaky inputs as 'json' files
Browse files Browse the repository at this point in the history
  • Loading branch information
Nashtare committed Jul 20, 2024
1 parent f531584 commit 16ba68b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions zero_bin/ops/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 16ba68b

Please sign in to comment.