Author

Topic: Structure of cryptocoin-source (Read 532 times)

sr. member
Activity: 401
Merit: 251
Still learning
April 28, 2017, 10:14:47 AM
#3
Thank you master, all clear now Cool Cheesy
 If someone going to reply and add info about where the information about a coin are stored in the source, I update the post with the coin description and file link
staff
Activity: 3458
Merit: 6793
Just writing some code
April 28, 2017, 08:13:31 AM
#2
I'm quite new to crypto, and i start studying/develop some tool to ease the trading/mining.

Can someone more expert than me tell us How a coin i structured?

I mean the "high-level" chart for designed/develop a coin and where that info are stored in the source.
It depends on what version of the Bitcoin Core source that the coin you are working on forked from. The names of each file is fairly self explanatory and should be obvious as to what it does. The only not so obvious one is main.cpp. main.cpp contains all of the processing of network messages and validation of blocks and transactions. If they forked from Core 0.14.0+, main.cpp does not exist. Rather it has been split into validation.cpp and net_processing.cpp. You can probably guess what the stuff in those files do.

Specifically:

1) Where is the difficulty retarget system?
It is either located in main.cpp or pow.cpp, depending on the version of Bitcoin Core that the coin was forked from. The name of the function is CalculateNextWorkRequired.

3) Where are the "hot" info like : number of coin produced on time, algo, stake, ecc ecc
Those are the blockchain parameters, hence they would be located in the chainparams.cpp file.
sr. member
Activity: 401
Merit: 251
Still learning
April 28, 2017, 06:11:08 AM
#1
I'm quite new to crypto, and i start studying/develop some tool to ease the trading/mining.

Can someone more expert than me tell us How a coin i structured?

I mean the "high-level" chart for designed/develop a coin and where that info are stored in the source.

Specifically:

1) Where is the difficulty retarget system?

3) Where are the "hot" info like : number of coin produced on time, algo, stake, ecc ecc
Jump to: