According to the release notes GUI v0.14.1.0 includes blockchain pruning. How do I utilize this feature with the GUI (monero-wallet-gui)?
1 Answer
Pruning from scratch or enable pruning going forward
Pruning from scratch or enabling pruning going forward is fairly straight forward. It is done as follows:
Go to the
Settings
page and switch to theNode
tab.Make sure
Local node
is selected.Add the
--prune-blockchain
flag to theDaemon startup flags
box.Restart (by clicking on the
x
(right top) and making sure to stop the daemon as well) the GUI to ensure the flag goes into effect.
Pruning is now enabled and will significantly reduce the amount of storage required.
Pruning an existing (synced) blockchain file
First, note that this requires approximately 30 GB of additional storage, as, initially, the Monero software will store both the 'old' non-pruned blockchain and the 'new' pruned blockchain. You can, after verifying that your GUI runs properly, delete the old file of course. The following steps are required to use blockchain pruning:
[1] Make sure all Monero related processes are closed.
[2] Browse to the directory v0.17.1.4 monero-wallet-gui
is located.
[3] If you are using a custom data directory, skip step 4 and proceed to step 5.
[4] Run the monero-blockchain-prune
tool (on MacOS, you will have to right click -> Show package contents
-> Contents
-> MacOS
on monero-wallet-gui.app
in order to see the tool). Note that this may take quite some time to complete. Thus, I'd advise to run it overnight.
[5a] Windows - custom data directory:
Open a new command prompt / powershell from the directory of
monero-wallet-gui
. This is done by first making sure your cursor isn't located on any of the files and subsequently doing SHIFT + right click. It will give you an option to "Open command window here". If you're using Windows 10, it'll, most likely, give you an option to open the Powershell.Type:
monero-blockchain-prune.exe --data-dir path\to\preferred\data\directory
(Win 7 + 8)
.\monero-blockchain-prune.exe --data-dir path\to\preferred\data\directory
(Win 10)
[5b] Linux - custom data directory:
Open a new command terminal from the directory of
monero-wallet-gui
Type:
./monero-blockchain-prune --data-dir path/to/preferred/data/directory
[5c] MacOS - custom data directory:
Go to your desktop.
Open a new terminal (if don't know how to open a terminal, see here).
Drag
monero-blockchain-prune
in the terminal. It should add the full path to the terminal. Do not hit enter.Now type:
--data-dir path/to/preferred/data/directory
Note that aforementioned text will be appended to the path of
monero-blockchain-prune
. Thus, before you hit enter, your terminal should look like:
/full/path/to/monero-blockchain-prune --data-dir path/to/preferred/data/directory
Where the full path is, intuitively, the actual path on your MacOS.
[6] Note that path/to/preferred/data/directory
is a placeholder that should be replaced by the actual path. To reiterate, this may take quite some time to complete. Thus, I'd advise to run it overnight.
[7] After the monero-blockchain-prune
tool has finished, open monero-wallet-gui
and verify that it is running properly.
[8] You can now delete the 'old' non-pruned blockchain file.
-
which parts of the blockchain are pruned and which parts must stay? What is the blockchain size before and after pruning?– Marki555Commented Aug 27, 2019 at 20:40
-
@Marki555 - Have you already read this blog? getmonero.org/2019/02/01/pruning.html– dEBRUYNECommented Aug 28, 2019 at 7:30
-
thanks for the link, I only read the reddit post which references this answer.– Marki555Commented Aug 28, 2019 at 8:42
-
Something changed, the
monero-blockchain-prune
is not there any more. Can anyone update or provide another response? Commented Jun 19, 2023 at 5:57 -
@SuperAtic - Did you download the CLI or GUI wallet? For the latter, it might not be included anymore. Alternatively, your AV software could have quarantined it.– dEBRUYNECommented Jun 30, 2023 at 17:35