]> Untitled Git - bdk/commit
bdk_wallet: remove unnecessary calls to calc_checksum
authorAntoine Poinsot <darosior@protonmail.com>
Thu, 25 Jul 2024 14:51:16 +0000 (16:51 +0200)
committerAntoine Poinsot <darosior@protonmail.com>
Sat, 27 Jul 2024 15:56:02 +0000 (17:56 +0200)
commit70c7d6b1c064103b359ad2e774a2648fbd85a414
tree42fc1ed38f13408006c11b19f86316cd6d42743f
parent8245fb7eabb3aa9747118cc871dca4646be4d6e8
bdk_wallet: remove unnecessary calls to calc_checksum

This code was:
1. Removing the checksum from the descriptor string, asserting it was
   present
2. Re-calculating the checksum on the descriptor string absent the
   checksum

Instead, just use the existing checksum? If we don't trust it we
probably shouldn't assert its presence in the first place.
crates/wallet/src/wallet/mod.rs