Commit 4ed2f5f
Re-enable proof-of-work validation and add chain checkpoints
pow.cpp: CheckProofOfWork() had the hash-vs-target comparison commented
out, so it only ran the range check and accepted any hash for the
claimed nBits. Re-enabled it. Verified safe by a full -reindex of the
live chain (height ~11700) with the check enabled: every block,
including the PoW range 1-10000 and all PoS blocks, validates with 0
errors, confirming the historical chain has valid proof-of-work.
chainparams.cpp: the mainnet checkpoint map only contained genesis.
Added checkpoints at blocks 1, 5000, 10000 (PoW->PoS boundary) and
11000 (all from the canonical chain) and updated CCheckpointData, for
reorg / long-range-attack protection.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent dc49514 commit 4ed2f5f
2 files changed
Lines changed: 11 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
334 | | - | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
335 | 340 | | |
336 | 341 | | |
337 | | - | |
338 | | - | |
339 | | - | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
340 | 345 | | |
341 | 346 | | |
342 | 347 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
127 | | - | |
| 126 | + | |
| 127 | + | |
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| |||
0 commit comments