]> Untitled Git - bdk/commit
fix(chain): simplify `Append::append` impl for `keychain::ChangeSet`
author志宇 <hello@evanlinjin.me>
Sat, 4 May 2024 15:37:42 +0000 (23:37 +0800)
committerDaniela Brozzoni <danielabrozzoni@protonmail.com>
Wed, 8 May 2024 13:49:45 +0000 (15:49 +0200)
commit6a3fb849e86e0bc21086519ae0201b95ddde5bf4
treed05af865ace9e7c9aa5f3bde70047e36772b0736
parent1d294b734dd6f4639075cba271e2b40f437f998f
fix(chain): simplify `Append::append` impl for `keychain::ChangeSet`

We only need to loop though entries of `other`. The logic before was
wasteful because we were also looping though all entries of `self` even
if we do not need to modify the `self` entry.
crates/chain/src/keychain/txout_index.rs