2

I am running 64bit Ubuntu 17.04, I am following this tutorial for creating a new altcoin. I am up to section 7, here to be exact:

The first time you run the compiled code (daemon or qt), it will say "assertion failed". Just exit the program, go to config dir (under AppData/Roaming), open the debug.log, get the hash after "block.GetHash() = ", copy and paste it to the beginnig of main.cpp, hashGenesisBlock. Also get the merkle root in the same log file, paste it to the ... position in the following code, in LoadBlockIndex()

I am struggling to find the debug.log file, and so cannot get my hashes to continue. This guide is quite old (4 years) and I think is for setting up an altcoin on Windows.

Where is my debug.log file? If it doesn't exist, what is my next step?

2
  • 1
    Just as general advice, 4 years ago is an eternity in cryptocurrency time. I would not count on any information that old still being correct or usable. Nov 14, 2017 at 4:37
  • It's the only information around unfortunately! Nov 14, 2017 at 6:38

1 Answer 1

5

On Unix systems the debug.log file, as well as all other files created by the client (blockchain data, databases, etc) are placed by default in ~/.bitcoin; that is, a subdirectory of your home directory named .bitcoin. If you have used -datadir to set a different data directory, debug.log will be placed there instead.

Note that the ls command normally will not show files or directories that start with ., so you won't see this if you just ls your home directory. But you can still cd there, or use ls -a to see it.

2
  • I think this is outdated information Nate, I think all the code that produced this file has been removed from the Bitcoin code around 2014. Nov 14, 2017 at 11:18
  • No, I don't think so. You can see at github.com/bitcoin/bitcoin/blob/… in the current version where debug.log is opened. Additionally, I just tested v0.15.0 and the file is still written. Nov 14, 2017 at 16:45

Your Answer

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

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