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?
Was Satoshi's target recalculation off by one?
3 replies 228 views
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).
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.
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.
Related topics
- Bitcoin Core displaying coins (UTXOs) in a new tab 13
- Are you in favor of BIP-110? Let's get a Bitcoin poll going. 0
- Erlay seems to have some issues here’s a better proposal for a bitcoin protocol without invites 3
- New Optional Hourglass Implementation is Live 3
- Ways to earn some sats by contributing to bitcoin core development 5
- Exploring the Potential and Challenges of a Kardashev-Scale Bitcoin Network 3