Author

Topic: Help to understand the Bitcoin C++ Code (Read 808 times)

legendary
Activity: 2618
Merit: 1006
November 29, 2013, 08:46:31 AM
#4
14 days * 24 hours/day * 60 minutes/hour * 60 seconds/minute = amount of seconds in 14 days.

The use is already explained.
hero member
Activity: 812
Merit: 1022
No Maps for These Territories
November 29, 2013, 08:15:25 AM
#3
Yes, it is the targeted time between difficulty changes.
legendary
Activity: 1862
Merit: 1011
Reverse engineer from time to time
November 29, 2013, 08:14:22 AM
#2
Anyone can explain me the purpose of this variable?

https://github.com/bitcoin/bitcoin/blob/master/src/main.cpp#L993

Thanks a lot in advance!
I am not versed in the Bitcoin source code, but the network tries to keep Block generation at 2016 blocks per two weeks(6 per hour), due to variance this isn't possible to control entirely, but it tries. If 2016 blocks took less than two weeks, the difficulty goes up, likewise if it took longer than 2 weeks, it goes down. So the variable is used to determine that somewhere I guess.
newbie
Activity: 37
Merit: 0
November 29, 2013, 08:10:57 AM
#1
Anyone can explain me the purpose of this variable?

https://github.com/bitcoin/bitcoin/blob/master/src/main.cpp#L993

Thanks a lot in advance!
Jump to: