Skip to content

Instantly share code, notes, and snippets.

@AlexeyALeonov
Created December 3, 2017 00:53
Show Gist options
  • Save AlexeyALeonov/7bad837a6ba9b36ef7a0734e161d89cb to your computer and use it in GitHub Desktop.
Save AlexeyALeonov/7bad837a6ba9b36ef7a0734e161d89cb to your computer and use it in GitHub Desktop.
// 1. Install the leveldown:
// npm install leveldown
// 2. Change the path
// 3. Run in cmd/powershell/bash
// node fix_broken_contracts.js
var leveldown2 = require("leveldown");
var myCallback = function(ld) {
console.log('LD: '+ld);
};
leveldown2.repair('Y:\\storj1\\contracts.db',function (err) { console.log('done!') });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment