Bitcoin Forum
May 28, 2024, 10:19:30 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Questions on the Bitcoin Source Code  (Read 798 times)
minerva (OP)
Full Member
***
Offline Offline

Activity: 120
Merit: 100


View Profile
January 04, 2014, 10:38:34 AM
 #1

Where is the difficulty code located?
Where is the block reward code  located?
Where is the block header code located?
Where is the minimum transaction fee value located?
Where is the gui code located?
Where is the code located for the file menu?
Where is the code located for command line commands?
Where is the code for the "-loadblock=" command located?
Where is the code for the seed DNS located?


I am only asking for educational purposes.

Tip-Jar: 15NN2YwMGAntKopJgAsFBJvfuCARkV62xo
coinrevo
Member
**
Offline Offline

Activity: 70
Merit: 10


View Profile
January 04, 2014, 12:44:10 PM
 #2

Source Code
https://github.com/bitcoin/bitcoin/tree/master/src

Networking, i.e. DNS lookup
https://github.com/bitcoin/bitcoin/blob/master/src/net.cpp

GUI code
https://github.com/bitcoin/bitcoin/tree/master/src/qt


I would start with simpler packages to learn

https://github.com/vbuterin/pybitcointools
https://github.com/laanwj/bitcoin-python
https://github.com/richardkiss/pycoin
https://github.com/jgarzik/python-bitcoinlib
https://github.com/spesmilo/libbitcoin
https://github.com/bitcoin-abe/bitcoin-abe
minerva (OP)
Full Member
***
Offline Offline

Activity: 120
Merit: 100


View Profile
January 08, 2014, 06:23:02 PM
 #3

There's no table of contents for the files?

So it's copyright by obfuscation?

Tip-Jar: 15NN2YwMGAntKopJgAsFBJvfuCARkV62xo
cp1
Hero Member
*****
Offline Offline

Activity: 616
Merit: 500


Stop using branwallets


View Profile
January 08, 2014, 06:24:00 PM
 #4

I think grep is going to be your table of contents.

Guide to armory offline install on USB key:  https://bitcointalk.org/index.php?topic=241730.0
minerva (OP)
Full Member
***
Offline Offline

Activity: 120
Merit: 100


View Profile
January 08, 2014, 06:30:00 PM
 #5

I think grep is going to be your table of contents.
I think some variable names require the catch-22 of knowing what they are.

But thanks, I'll play some regex golf.

Tip-Jar: 15NN2YwMGAntKopJgAsFBJvfuCARkV62xo
kjj
Legendary
*
Offline Offline

Activity: 1302
Merit: 1025



View Profile
January 08, 2014, 07:08:08 PM
 #6

Grep is the index.  The files have names, use those as your table of contents.

You can often use known text strings (rpc commands, log messages, errors, etc) to get into the right ballpark.  From there, grep function names forward and backward to find what you are looking for.  Be careful of namespaces when grepping.

17Np17BSrpnHCZ2pgtiMNnhjnsWJ2TMqq8
I routinely ignore posters with paid advertising in their sigs.  You should too.
yossarian1
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
January 08, 2014, 09:08:20 PM
 #7

If you're looking to put together an altcoin then http://coingen.bluematt.me/ might save you a bit of time...
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!