From 1a48ba78f1233c119c0f5ac9486da95e698616e4 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Fri, 11 Aug 2017 00:29:25 -0700 Subject: [PATCH] migrate: less memory usage for chaindb2to3. see #271. --- migrate/chaindb2to3.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migrate/chaindb2to3.js b/migrate/chaindb2to3.js index 37b597d1..0600cdc8 100644 --- a/migrate/chaindb2to3.js +++ b/migrate/chaindb2to3.js @@ -233,7 +233,7 @@ async function reserializeUndo(hash) { batch.put(pair('u', tip.hash), undo.toRaw()); - if (++total % 1000 === 0) { + if (++total % 100 === 0) { console.log( 'Reserialized %d undo records (%d coins).', total, totalCoins);