Skip to content

Commit

Permalink
fix: disabled diff
Browse files Browse the repository at this point in the history
  • Loading branch information
troykessler committed Feb 26, 2024
1 parent 31a91ee commit 6446154
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions common/protocol/src/methods/helpers/archiveDebugBundle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import path from "path";
import { DataItem, standardizeError, Validator } from "../..";
import JSZip from "jszip";
import { VoteType } from "@kyvejs/types/client/kyve/bundles/v1beta1/tx";
import Diff from "diff";

/**
* archiveDebugBundle is used for storing a bundle for debug
Expand Down Expand Up @@ -55,13 +54,13 @@ export function archiveDebugBundle(
zip.file("validation_bundle.json", validation_bundle_str);

// save the diff of the proposed and local bundle
const diff_str = Diff.createTwoFilesPatch(
"proposed_bundle.json",
"validation_bundle.json",
proposed_bundle_str,
validation_bundle_str
);
zip.file("diff.txt", diff_str);
// const diff_str = Diff.createTwoFilesPatch(
// "proposed_bundle.json",
// "validation_bundle.json",
// proposed_bundle_str,
// validation_bundle_str
// );
// zip.file("diff.txt", diff_str);

// save the logfile of the current session
const debug_str = readFileSync(path.join(this.home, "logs", this.logFile));
Expand Down

0 comments on commit 6446154

Please sign in to comment.