Commit 6e138f0
review: document known_hash safety and fix test to exercise reindex path
Add comment explaining that CheckProofOfWork serves as the runtime
consistency check for known_hash in release builds.
Restructure test to skip standalone CheckBlock before AcceptBlock so
that fChecked remains false and AcceptBlock's internal CheckBlock
actually exercises the known_hash code path, mirroring the reindex flow.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 01af278 commit 6e138f0
2 files changed
Lines changed: 10 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
206 | | - | |
207 | | - | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
208 | 209 | | |
209 | 210 | | |
210 | 211 | | |
| |||
214 | 215 | | |
215 | 216 | | |
216 | 217 | | |
217 | | - | |
218 | 218 | | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
228 | 223 | | |
229 | 224 | | |
230 | 225 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4358 | 4358 | | |
4359 | 4359 | | |
4360 | 4360 | | |
| 4361 | + | |
| 4362 | + | |
| 4363 | + | |
4361 | 4364 | | |
4362 | 4365 | | |
4363 | 4366 | | |
| |||
0 commit comments