]> Untitled Git - bdk/commit
Ensure backward compatibility of the "checksum inception" bug
author志宇 <hello@evanlinjin.me>
Thu, 29 Sep 2022 06:24:28 +0000 (14:24 +0800)
committer志宇 <hello@evanlinjin.me>
Thu, 29 Sep 2022 06:45:24 +0000 (14:45 +0800)
commite2a4a5884b444a6ef3f137ef2cc21a816c386acf
treed20df7d83a8feaf393c9efe31fb5f887b2651be5
parentfd34956c2980295e1f0cc32340fb2b99a6b245ea
Ensure backward compatibility of the  "checksum inception" bug

`Wallet` stores the descriptors' checksum in the database for safety.
Previously, the checksum used was a checksum of a descriptor that
already had a checksum.

This PR allows for backward-compatibility of databases created with this
bug.
src/descriptor/checksum.rs
src/descriptor/mod.rs
src/wallet/mod.rs