Files
Krystie 6b2293ad1a [glm-grade=B] fix(reindex): set phashBlock before GetStakeModifierChecksum in FastImportBlockFile
FastImportBlockFile() was calling GetStakeModifierChecksum(pindexNew)
which calls GetBlockHash() which dereferences *phashBlock — but
phashBlock was still null because the mapBlockIndex.insert that sets it
happened 10 lines later. This caused a segfault (exit 139) on every
fresh -reindex with no existing chainstate.

Fix: move the mapBlockIndex.insert + phashBlock assignment before the
GetStakeModifierChecksum call. Pure ordering fix, no logic change.
2026-08-08 02:55:45 -07:00
..
2014-10-05 23:37:30 +02:00
2014-10-05 23:37:30 +02:00
2014-07-16 16:05:09 -07:00
2026-07-07 14:42:30 -07:00
2014-07-16 16:05:09 -07:00
2014-07-16 16:05:09 -07:00
2014-07-16 16:05:09 -07:00
2014-07-16 16:05:09 -07:00
2014-07-16 16:05:09 -07:00
2014-07-16 16:05:09 -07:00
2014-07-16 16:05:09 -07:00
2014-07-16 16:05:09 -07:00
2014-07-16 16:05:09 -07:00
2014-07-16 16:05:09 -07:00
2014-07-16 16:05:09 -07:00
2014-07-16 16:05:09 -07:00
2014-10-05 23:37:30 +02:00
2014-07-16 16:05:09 -07:00
2014-10-05 23:37:30 +02:00
2014-10-05 23:37:30 +02:00
2014-07-16 16:05:09 -07:00
2014-07-16 16:05:09 -07:00
2014-10-05 23:37:30 +02:00
2026-05-10 02:33:40 -07:00
2014-07-16 16:05:09 -07:00
2014-10-05 23:37:30 +02:00
2014-07-16 16:05:09 -07:00
2014-07-16 16:05:09 -07:00
2014-07-16 16:05:09 -07:00
2014-07-16 16:05:09 -07:00
2014-07-16 16:05:09 -07:00
2014-07-16 16:05:09 -07:00
2014-07-16 16:05:09 -07:00
2014-07-16 16:05:09 -07:00
2014-10-05 23:37:30 +02:00
2014-07-16 16:05:09 -07:00
2014-07-16 16:05:09 -07:00
2014-07-16 16:05:09 -07:00
2014-07-16 16:05:09 -07:00
2014-07-16 16:05:09 -07:00
2014-07-16 16:05:09 -07:00
2014-07-16 16:05:09 -07:00
2026-06-29 20:08:06 -07:00
2014-10-05 23:37:30 +02:00
2026-07-07 14:42:30 -07:00