Bitcoin Forum
November 09, 2024, 08:02:04 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Source code understanding  (Read 593 times)
Reaper301 (OP)
Full Member
***
Offline Offline

Activity: 151
Merit: 100


♞MustangCoin♞


View Profile WWW
March 26, 2016, 04:35:47 AM
 #1

Need to know how to find following info in source code
Transaction confirmation time
Block maturity time
Difficulty retarget time
Difficulty algo
Min stake age
Max stake age
Mint8ng maturity
Block reward pow and pos

Now some of the questions are related to altcoin so going to post in that section as well

Any advise / helpful post link would be appreciated

achow101
Staff
Legendary
*
Offline Offline

Activity: 3542
Merit: 6886


Just writing some code


View Profile WWW
March 26, 2016, 04:47:49 AM
 #2

That stuff is usually in chainparams.cpp or main.cpp. If the coin your are looking at is based off of an older version of bitcoin core e.g. 0.8.6 then it should all be main.cpp.

Reaper301 (OP)
Full Member
***
Offline Offline

Activity: 151
Merit: 100


♞MustangCoin♞


View Profile WWW
March 26, 2016, 06:10:33 AM
 #3

Thanks for advise sir

Reaper301 (OP)
Full Member
***
Offline Offline

Activity: 151
Merit: 100


♞MustangCoin♞


View Profile WWW
March 26, 2016, 06:28:17 AM
 #4

Need more baby sitting Smiley

So what i need to look in main.cpp its whole lot of text   Roll Eyes

Stouse49
Full Member
***
Offline Offline

Activity: 209
Merit: 100



View Profile
March 26, 2016, 06:49:48 AM
 #5


Transaction confirmation time - TARGET_SPACING or TargetSpacing, GetNextWorkRequired
Block maturity time - coinbase depth
Difficulty retarget time - TARGET_TIMESPAN or TargetTimespan, GetNextWorkRequired
Difficulty algo - GetNextWorkRequired
Min stake age
Max stake age
Minting maturity
Block reward pow and pos - GetBlockValue

Some of these names are based on the older source code, some the newer code.

For POS items, I am not sure.  The best way to learn is to look and read and do "Find Usage" to see what is up with this or that variable in the code.

BTC:
Reaper301 (OP)
Full Member
***
Offline Offline

Activity: 151
Merit: 100


♞MustangCoin♞


View Profile WWW
March 26, 2016, 07:32:49 AM
 #6

You guys are great ::respect::

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!