Python – Simulating the Bitcoin Mining Process – YouTube video

Ok, currently the BTC is 68 491,28 USD and instead of feeling bad for not buying it, you can try to simulate it the mining process with Python just for fun. It is an interesting way to have fun, but hey, who am I to judge you 🙂

Nice picture of the Bulgarian Black Sea.

So, we need only 3 classes that work with each other – Block, Miner and Blockchain.

These 3 classes are related with the simulate_mining function, that produces some nice output at the end:

The output looks like this:

And actually the whole code is explained in the YouTube video:

Enjoy it! 🙂

Tagged with: , , , ,