Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: lovecodelc on October 08, 2016, 06:50:29 AM



Title: Is there any materials about Bitcoin Core code for reference?
Post by: lovecodelc on October 08, 2016, 06:50:29 AM
Hi, My job is developing program, now i need do some Bitcoin Core research, such as P2P, BlockChain, POW and so on.
I have clone Bitcoin Core code from GitHub to learn, but i come across difficulties, such as:
when one node(N1) creates peer-two-peer relationship with another node(N2):
    1)N1 send VERSION message(msg) to N2;
    2)N2 reply VERACK msg and VERSION msg
    3)N1 reply VERACK msg
when N1 send INV msg to N2(question: N1 knows what hash value send?), what N2 need do before reply GETDATA or GETHEADERS msg?
I refer to Bitcoin wiki and official site, but cannot find some useful materials, could you give me some suggestions?

Thank you.


Title: Re: Is there any materials about Bitcoin Core code for reference?
Post by: achow101 on October 08, 2016, 01:36:54 PM
Read https://bitcoin.org/en/developer-reference


Title: Re: Is there any materials about Bitcoin Core code for reference?
Post by: jonahmarieaton101 on October 09, 2016, 05:57:06 AM
I just wonder if there is any material about Bitcoin core code for references.

Will you please share your thoughts here  :)


Title: Re: Is there any materials about Bitcoin Core code for reference?
Post by: lovecodelc on October 09, 2016, 07:13:11 AM
haha, i want to learn bitcoin core code, but cannot find some concrete or detailed material about module(eg, how does P2P work in Bitcoin Core)or data structure(eg, CBlockIndex, CMempool)
I just wonder if there is any material about Bitcoin core code for references.

Will you please share your thoughts here  :)


Title: Re: Is there any materials about Bitcoin Core code for reference?
Post by: tahsilatetakmili on October 09, 2016, 09:37:24 AM
i have same problem..
N2 reply VERACK msg and VERSION msg ??
thnks


Title: Re: Is there any materials about Bitcoin Core code for reference?
Post by: jonahmarieaton101 on October 09, 2016, 01:29:06 PM
haha, i want to learn bitcoin core code, but cannot find some concrete or detailed material about module(eg, how does P2P work in Bitcoin Core)or data structure(eg, CBlockIndex, CMempool)
I just wonder if there is any material about Bitcoin core code for references.

Will you please share your thoughts here  :)

Yes it is really hard to find it of course! But if we want to have that maybe, just maybe there are many ways hm. what do you think? Is it possible to find detailed material about bitcoin?


Title: Re: Is there any materials about Bitcoin Core code for reference?
Post by: achow101 on October 09, 2016, 02:26:12 PM
There are developer docs available at https://dev.visucore.com/bitcoin/doxygen/ so you can also read those to understand the methods and classes used in Bitcoin Core.