From 8337176e07fe556369aa9979161db2bb8dd56423 Mon Sep 17 00:00:00 2001 From: Braydon Fuller Date: Tue, 2 Apr 2019 20:31:06 -0700 Subject: [PATCH] migrate: add time to migrate and compaction log message --- CHANGELOG.md | 6 +++--- migrate/chaindb4to5.js | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2b50d535..6821a499 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,9 +14,9 @@ To do this you can run: node ./migrate/chaindb4to5.js /path/to/bcoin/chain ``` -The block data will now be stored at `/path/to/bcoin/blocks`, after -the data has been moved the chain database will be compacted to free -disk space. +The migration will take 1-3 hours, depending on hardware. The block data +will now be stored at `/path/to/bcoin/blocks`, after the data has been moved +the chain database will be compacted to free disk space. Alternatively, you can also sync the chain again, however the above migration will be faster as additional network bandwidth won't be used diff --git a/migrate/chaindb4to5.js b/migrate/chaindb4to5.js index 8a2d946e..b9eb1f0b 100644 --- a/migrate/chaindb4to5.js +++ b/migrate/chaindb4to5.js @@ -129,6 +129,7 @@ async function migrateBlocks() { await migrateUndoBlocks(); await updateVersion(); + console.log('Compacting database'); await db.compactRange(); await db.close(); await blockStore.close();