Commit a3fb1f8
committed
Merge bitcoin/bitcoin#28791: snapshots: don't core dump when running -checkblockindex after
cdc6ac4 snapshots: don't core dump when running -checkblockindex after `loadtxoutset` (Mark Friedenbach)
Pull request description:
Transaction counts aren't known for block history loaded from a snapshot. If you start with `-checkblockindex` after loading a snapshot, the bitcoin daemon will core dump. The test suite does not check for this because all the snapshots have no non-coinbase transactions (all blocks prior to the snapshot are assumed to have `nTx = 1`).
Recommend for backport to 26.x
ACKs for top commit:
fjahr:
utACK cdc6ac4
achow101:
ACK cdc6ac4
pablomartin4btc:
tACK cdc6ac4
Tree-SHA512: f7488a85cc29056e2ac443ce8f34aea4dfde6ba246efce82235d6a4dca2dca4344f07b93c93424b4addcb83e4cb2ae49a3ebb37d89840d42d2aeea35904cab04loadtxoutset
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4868 | 4868 | | |
4869 | 4869 | | |
4870 | 4870 | | |
4871 | | - | |
| 4871 | + | |
| 4872 | + | |
| 4873 | + | |
4872 | 4874 | | |
4873 | 4875 | | |
4874 | 4876 | | |
| |||
0 commit comments