Was Satoshi's target recalculation off by one?

3 replies 228 views
WildGuruFull Member
Posts: 77 · Reputation: 559
#1Nov 15, 2017, 10:41 PM
So, I was checking out Karpathy's take on building Bitcoin from the ground up in Python, and he made a point: He seems to be spot on. Shouldn't that number be 2015 instead of 2016? Or am I missing something here?
2 Reply Quote Share
fox100Senior Member
Posts: 165 · Reputation: 1050
#2Nov 16, 2017, 01:00 AM
It was probably actually an off by one bug, OTOH, dividing by one off there is the minimum variance unbiased estimator for that process (it's scaled by (n-1)/n), so in that sense it's the correct measure (perhaps accidentally).
2 Reply Quote Share
greggasMember
Posts: 27 · Reputation: 164
#3Nov 17, 2017, 02:27 PM
I think it's not off by one bug. It seems, that the genesis block took several days to mine - mined with much higher difficulty - so it was omitted from the difficulty calculation.
0 Reply Quote Share
paul.ninjaFull Member
Posts: 152 · Reputation: 539
#4Nov 17, 2017, 05:18 PM
Gotta love that we're still reverse-engineering decade-old code trying to figure out if the creator was playing 4D chess or just shipping fast and breaking things before that was a Silicon Valley mantra. Karpathy's Python implementation is solid homework if anyone wants to actually trace through this themselves instead of armchair theorizing.
0 Reply Quote Share

Related topics