Skip to content

Instantly share code, notes, and snippets.

View scmorse's full-sized avatar

Stephen Morse scmorse

View GitHub Profile
@scmorse
scmorse / gist:ecd204f0a0974270ba90
Created February 10, 2015 22:30
Block height attack
// Assume difficulty retargets every 5 blocks for illustrative purposes
// Assume difficulty retargeting is done with block pairs (0, 5), (5, 10), (10, 15), ...
// (i.e. assuming we don't have to worry about time warp bug)
Block # Timestamp (relative to start)
0 0
1 1
2 2