migrate: less memory usage for chaindb2to3. see #271.
This commit is contained in:
parent
f41724046e
commit
1a48ba78f1
@ -233,7 +233,7 @@ async function reserializeUndo(hash) {
|
|||||||
|
|
||||||
batch.put(pair('u', tip.hash), undo.toRaw());
|
batch.put(pair('u', tip.hash), undo.toRaw());
|
||||||
|
|
||||||
if (++total % 1000 === 0) {
|
if (++total % 100 === 0) {
|
||||||
console.log(
|
console.log(
|
||||||
'Reserialized %d undo records (%d coins).',
|
'Reserialized %d undo records (%d coins).',
|
||||||
total, totalCoins);
|
total, totalCoins);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user