fix db_audit check
@@ -375,7 +375,7 @@ impl LMDBDatabase {
mmr_position: u32,
) -> Result<(), ChainStorageError>
{
- if !lmdb_exists(txn, &self.headers_db, header_hash.as_slice())? {
+ if !lmdb_exists(txn, &self.block_hashes_db, header_hash.as_slice())? {
return Err(ChainStorageError::InvalidOperation(format!(
"Unable to insert pruned output because header {} does not exist",
header_hash.to_hex()
