fix update script

This commit is contained in:
Matias Alejo Garcia 2014-05-29 10:47:10 -03:00
parent e3c7440cf3
commit 99a9050261
1 changed files with 3 additions and 2 deletions

View File

@ -23,6 +23,7 @@ async.series([
}); });
}, },
function(c){ function(c){
console.log('[1/3] Migrating txs ... (this will take some minutes...)'); //TODO
txDb.migrateV02(c); txDb.migrateV02(c);
}, },
function(c){ function(c){
@ -39,7 +40,7 @@ async.series([
hash = val; hash = val;
if (hash) height++; if (hash) height++;
if (!(height%1000) || !hash) { if (!(height%1000) || !hash) {
console.log('*update 1/2\t%d blocks processed', height); console.log('[2/3] migrating blocks \t%d blocks processed', height);
bDb._runScript(script, function(err) { bDb._runScript(script, function(err) {
script=[]; script=[];
return w_cb(err); return w_cb(err);
@ -50,7 +51,7 @@ async.series([
}, c); }, c);
}, },
function(c){ function(c){
console.log('Migrating txs... (this will take some minutes...)'); //TODO console.log('[3/3] Migrating txs... (this will take some minutes...)'); //TODO
bDb.migrateV02(c); bDb.migrateV02(c);
}, },
function(c){ function(c){