diff options
| author | bitflash-maintainer <noreply@bitflash.invalid> | 2026-09-02 09:01:34 +0000 |
|---|---|---|
| committer | bitflash-maintainer <noreply@bitflash.invalid> | 2026-09-02 09:01:34 +0000 |
| commit | 7221bb35d50e9bac11ce5e4b3252c34abe03c124 (patch) | |
| tree | afa742ab161e19794a4daadc77840a7780ecf88e /src/db.cpp | |
| parent | d8eb3aeec198e9e6753b89a53d25f4f91f8ab3d6 (diff) | |
payout: treat a malformed ledger block hash as corruption, not as a hash
SetHex() parses whatever hex prefix it finds and stops, so a corrupt
blockHash loaded as a DIFFERENT hash: garbage with a hex-looking prefix
became a hash no block ever had, which the orphan check reads as an
orphaned block -- and the next flush voided the debt on the strength of
file corruption. Garbage with no hex prefix became 0 and skipped the
orphan check instead. A field that is not the 64-digit hex string this
tree writes now fails the load, and the file is quarantined like any
other parse error.
Diffstat (limited to 'src/db.cpp')
0 files changed, 0 insertions, 0 deletions