Skip to content

Commit

Permalink
Update vicky.js
Browse files Browse the repository at this point in the history
  • Loading branch information
supertestnet authored Dec 8, 2023
1 parent 4e594d4 commit 4f348d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/view/vicky.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4f348d3

Please sign in to comment.