Created
December 3, 2017 00:53
-
-
Save AlexeyALeonov/7bad837a6ba9b36ef7a0734e161d89cb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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