How can I build custom bitcoin network and start with bitcoin codebase

1

I am new to Bitcoin. My understanding about Bitcoin is gained by ready Bitcoin original paper and several blog posts on the Internet. However, my ambition is to understand the whole bitcoin codebase on Github and be able to modify it to support my experiments.

Right now, there are some steps that I think it's beneficial to start with:

  1. Try to run and build up my own custom network (first transaction that initially create 50 bitcoins, create some wallets to spend bitcoins around, try to understand the blockchain on that custom network when it's small).
  2. After that custom network built, I hope I would understand how transactions, blocks, validation, broadcasting, mining reward earning,... are handled.
  3. With those things understood, I try to find, read and understand the corresponding codes in the code base.

Do you think those steps is a good way for me to start with Bitcoin? I'm currently stuck with step 1. I could only compile the codebase and run the bitcoind then get lost, know nothing to do afterward.

vutran

Posted 2016-11-28T17:27:17.993

Reputation: 111

Have you tried running a regtest network?Nick ODell 2016-11-28T23:56:55.147

Yes, I have tried regtest followed this https://bitcoin.org/en/developer-examples#regtest-mode, however after running it, I just know the steps to bring first 50 BTC to supply without actually understand them.

vutran 2016-11-29T04:41:43.140

http://www.multichain.com/ may be a good optionMichael C Ippolito 2016-11-29T21:21:39.930

Answers

1

Try reading the book Mastering Bitcoins by O'Reilly Chimera, this should help in understanding the bitcoin network, process and the principles involved.

Here is a guide (from bitcointalk.org) on how to make a new altcoin by cloning the bitcoin code.

I would suggest understanding the process before trying to make your own custom network

tbolt

Posted 2016-11-28T17:27:17.993

Reputation: 254

I was in the same situation a couple months back, i did a lot of research to learn and still learningtbolt 2016-11-30T08:30:43.440