From 4f348d390faa52af1e65fac5cd4d63630467ef6d Mon Sep 17 00:00:00 2001 From: supertestnet <58400631+supertestnet@users.noreply.github.com> Date: Fri, 8 Dec 2023 09:48:44 -0600 Subject: [PATCH] Update vicky.js --- scripts/view/vicky.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/view/vicky.js b/scripts/view/vicky.js index cf70d66..3cbd7ac 100644 --- a/scripts/view/vicky.js +++ b/scripts/view/vicky.js @@ -151,10 +151,11 @@ async function handlePromise(json) { var preimages_found = 0; var sum_of_all_output_sizes = circuit.output_sizes.reduce((ac, c) => ac + c, 0); var preimages_expected = sum_of_all_output_sizes; - if ( program == "8bit cpu with 64 cyles" ) + if ( program == "8bit cpu with 64 cyles" ) { if ( !( "preimages_to_expect" in json ) || !( "preimage_positions" in json ) ) return alert( `Your counterparty did not send you good data about the preimages you ought to expect in the output. Aborting.` ); preimages_expected = json[ "preimages_to_expect" ]; var expected_preimage_positions = json[ "preimage_positions" ]; + } var preimage_positions = []; var outputs = []; var unchanging_output_start_wire;