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();