upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/bip32.cpp
diff options
context:
space:
mode:
authorbitflash-maintainer <noreply@bitflash.invalid>2026-09-02 09:01:34 +0000
committerbitflash-maintainer <noreply@bitflash.invalid>2026-09-02 09:01:34 +0000
commit7221bb35d50e9bac11ce5e4b3252c34abe03c124 (patch)
treeafa742ab161e19794a4daadc77840a7780ecf88e /src/bip32.cpp
parentd8eb3aeec198e9e6753b89a53d25f4f91f8ab3d6 (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/bip32.cpp')
0 files changed, 0 insertions, 0 deletions