Repository navigation
Consensus.PruneTarget to shrink consensus db #1021
|
Hi, I have set the Consensus.PruneTarget to 50000 but I cant see any decrease of the consensud db size. Thanks :) |
Replies: 2 comments 3 replies
|
Unfortunately boltdb doesn't reclaim disk space even if you delete from it. So it will just prevent your database from growing further. We are working on a In the meantime the recommended way to reduce the size of the database immediately is stopping the host, deleting the consensus.db file and restarting with the instant sync flag |
|
v2.12.0-beta.0 with a consensus.pruneTarget: 200 has reduced my consensus.db from 85GB to 8MB. |
Before the v2 hardfork from 2025 at block height 530000. Seems like your seed is older.
So what you do then is
--instant