Bitcoin Forum
May 14, 2024, 01:23:22 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Is there any materials about Bitcoin Core code for reference?  (Read 1026 times)
lovecodelc (OP)
Newbie
*
Offline Offline

Activity: 15
Merit: 2


View Profile
October 08, 2016, 06:50:29 AM
 #1

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.
1715693002
Hero Member
*
Offline Offline

Posts: 1715693002

View Profile Personal Message (Offline)

Ignore
1715693002
Reply with quote  #2

1715693002
Report to moderator
1715693002
Hero Member
*
Offline Offline

Posts: 1715693002

View Profile Personal Message (Offline)

Ignore
1715693002
Reply with quote  #2

1715693002
Report to moderator
Even in the event that an attacker gains more than 50% of the network's computational power, only transactions sent by the attacker could be reversed or double-spent. The network would not be destroyed.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715693002
Hero Member
*
Offline Offline

Posts: 1715693002

View Profile Personal Message (Offline)

Ignore
1715693002
Reply with quote  #2

1715693002
Report to moderator
1715693002
Hero Member
*
Offline Offline

Posts: 1715693002

View Profile Personal Message (Offline)

Ignore
1715693002
Reply with quote  #2

1715693002
Report to moderator
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3388
Merit: 6641


Just writing some code


View Profile WWW
October 08, 2016, 01:36:54 PM
 #2

Read https://bitcoin.org/en/developer-reference

jonahmarieaton101
Member
**
Offline Offline

Activity: 112
Merit: 10


View Profile
October 09, 2016, 05:57:06 AM
 #3

I just wonder if there is any material about Bitcoin core code for references.

Will you please share your thoughts here  Smiley
lovecodelc (OP)
Newbie
*
Offline Offline

Activity: 15
Merit: 2


View Profile
October 09, 2016, 07:13:11 AM
 #4

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  Smiley
tahsilatetakmili
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile WWW
October 09, 2016, 09:37:24 AM
 #5

i have same problem..
N2 reply VERACK msg and VERSION msg ??
thnks
jonahmarieaton101
Member
**
Offline Offline

Activity: 112
Merit: 10


View Profile
October 09, 2016, 01:29:06 PM
 #6

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  Smiley

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?
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3388
Merit: 6641


Just writing some code


View Profile WWW
October 09, 2016, 02:26:12 PM
 #7

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.

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!