0

I am following Antonopoulos' Mastering Bitcoin. I have installed Bitcoin core and ran bitcoind for the first time. Although the book said it will remind me to create a configuration file, it did not. It rapidly used up the disk space (I am running it on VM Ubuntu) and I had to interrupt it.

I want to free up the used space and try again with configuration file, but I do not know what to do.

1 Answer 1

1

Find the data directory: https://bitcoin.stackexchange.com/a/11210

Create a file named "bitcoin.conf"

Add prune=550 to that file.

Restart Bitcoin Core.

3
  • I just did. It did not seem to delete old blocks. Shall I manually delete some directories/files containing old blocks to start anew? Commented Jan 23, 2019 at 14:05
  • If you delete blocks manually, the database would be corrupted. Are you sure that it doesn't work? Could you please try adding random "asdasd" to bitcoin.conf to see if Bitcoin Core can see the conf file? If so, it'd crash. Otherwise, you might need to set "-datadir" option pointing to the directory with the conf file. BTW, make sure to calculate the size of the blocks directory, the number of files there might be misleading.
    – MCCCS
    Commented Jan 23, 2019 at 14:34
  • i added asdasd and I think it does not see the config file, because it said it closed the database because no space left on device Commented Jan 23, 2019 at 15:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.