I am aware it will take about 10 billion years to successfully mine a block, I just want this for learning purposes, and so that I can put my own code into it. I am just very daunted by the whole process, and it would be good if I could see a very basic working version.
Thanks
I don't understand why you would want to waste your time with this. There is a reason nobody uses CPUs or even GPUs to mine Bitcoin in 2017 - it is simply a worthless endeavor. Consider buying an antminer s9, if you really want to spend worthwhile time with mining. They come with pre-installed software included which allows you to simply input a few details to connect to your mining pool and get started instantly. I highly recommend this option for you.
I am just wanting to look at the software. I mentioned I was aware it would take billions of years on a single threaded cpu. It's for learning purposes.