
Its mentioned that options set in GUI will be overridden by the configuration file. I had nothing for mainnet in bitcoin.conf, removed testnet=1 and prune=555 for testnet, saved new datadir path for external drive that had mainnet synced.
I launched bitcoin-qt assuming it will not prune anything because there is nothing mentioned in bitcoin.conf, it deleted all my data and pruning was done based on GUI options which had 2 GB saved either by default or maybe I saved it in past.
Expected behavior
If bitcoin.conf does not mention anything about pruning it should not prune. If GUI for mainnet had pruning enabled in GUI, it should be saved automatically in bitcoin.conf as well to avoid the confusion and things remain in sync.
Actual behavior
Pruning is done based on GUI options
To reproduce
Sync a full node. Maybe testnet which will take less time.
Use the blocks and chainstate in other node (which had pruning enabled in GUI) using datadir and bitcoin.conf doesn’t have anything else.
Launch bitcoin-qt
System information
Bitcoin Core v 0.21.0. Ubuntu 20.04.2 LTS.