Fixes a duplicate key issue when inserting the same orphan block.
@@ -341,7 +341,7 @@ where D: Digest + Send + Sync
lmdb_insert(&txn, &self.kernels_db, &k, &v)?;
},
DbKeyValuePair::OrphanBlock(k, v) => {
- lmdb_insert(&txn, &self.orphans_db, &k, &v)?;
+ lmdb_replace(&txn, &self.orphans_db, &k, &v)?;
},
},
WriteOperation::Delete(delete) => match delete {
