Skip to content

Commit

Permalink
Update height during WriteBatch merge
Browse files Browse the repository at this point in the history
  • Loading branch information
romanz committed Nov 17, 2023
1 parent bec551b commit bbfec83
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ impl WriteBatch {
self.spending_rows.extend(other.spending_rows.into_iter());
self.txid_rows.extend(other.txid_rows.into_iter());
if self.height < other.height {
self.tip_row = other.tip_row
self.tip_row = other.tip_row;
self.height = other.height;
}
self
}
Expand Down

0 comments on commit bbfec83

Please sign in to comment.