Bitcoin Forum
May 13, 2024, 11:22:21 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Low level blockchain&network dev thread?  (Read 543 times)
DuddlyDoRight (OP)
Sr. Member
****
Offline Offline

Activity: 318
Merit: 260



View Profile WWW
November 08, 2015, 10:41:40 PM
Merited by ABCbits (2)
 #1

I've been looking over the "reference implementation" GIT repo: https://github.com/bitcoin/bitcoin/tree/master/src

I didn't see any network configuration data. Anyone know how implementations set the packaged peer-server list the blockchain is pulled from first start? Are there official peers used by all "full" wallets?

I'm working with getBlockTemplate in Python(link) and want to research low-level blockchain interactions.

I have faith that one day this forum will get threads where people won't just repeat their previous posts or what others have already stated in the same thread. Also that people will stop acting like BTC is toy-money and start holding vendors accountable. Naive? Maybe.
1715599341
Hero Member
*
Offline Offline

Posts: 1715599341

View Profile Personal Message (Offline)

Ignore
1715599341
Reply with quote  #2

1715599341
Report to moderator
1715599341
Hero Member
*
Offline Offline

Posts: 1715599341

View Profile Personal Message (Offline)

Ignore
1715599341
Reply with quote  #2

1715599341
Report to moderator
I HATE TABLES I HATE TABLES I HA(╯°□°)╯︵ ┻━┻ TABLES I HATE TABLES I HATE TABLES
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715599341
Hero Member
*
Offline Offline

Posts: 1715599341

View Profile Personal Message (Offline)

Ignore
1715599341
Reply with quote  #2

1715599341
Report to moderator
1715599341
Hero Member
*
Offline Offline

Posts: 1715599341

View Profile Personal Message (Offline)

Ignore
1715599341
Reply with quote  #2

1715599341
Report to moderator
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3388
Merit: 6635


Just writing some code


View Profile WWW
November 08, 2015, 10:47:23 PM
 #2

I've been looking over the "reference implementation" GIT repo: https://github.com/bitcoin/bitcoin/tree/master/src

I didn't see any network configuration data. Anyone know how implementations set the packaged peer-server list the blockchain is pulled from first start? Are there official peers used by all "full" wallets?

I'm working with getBlockTemplate in Python(link) and want to research low-level blockchain interactions.
Check chainparams.cpp. The DNS seeds are hardcoded into the program. The DNS seeds will return nodes that Bitcoin Core can connect to. It then connects to those nodes given by the seed nodes. It will then choose one of those nodes and systematically request all of the blocks from it. There are no official peers used by full nodes. Any peer can be the initial download peer of any node.

DuddlyDoRight (OP)
Sr. Member
****
Offline Offline

Activity: 318
Merit: 260



View Profile WWW
November 08, 2015, 11:02:51 PM
 #3

Thanks I'm going to implement what they did in python for block-sync.

I have faith that one day this forum will get threads where people won't just repeat their previous posts or what others have already stated in the same thread. Also that people will stop acting like BTC is toy-money and start holding vendors accountable. Naive? Maybe.
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!