Merge commit 'refs/pull/348/head' of github.com:bitcoindevkit/bdk

This commit is contained in:
Alekos Filini
2021-06-11 11:41:23 +02:00
12 changed files with 832 additions and 95 deletions

View File

@@ -429,8 +429,8 @@ impl BatchDatabase for MemoryDatabase {
}
fn commit_batch(&mut self, mut batch: Self::Batch) -> Result<(), Error> {
for key in batch.deleted_keys {
self.map.remove(&key);
for key in batch.deleted_keys.iter() {
self.map.remove(key);
}
self.map.append(&mut batch.map);
Ok(())