Skip to content

Commit

Permalink
chore: reset rescan db
Browse files Browse the repository at this point in the history
Signed-off-by: Gregory Hill <[email protected]>
  • Loading branch information
gregdhill committed Sep 13, 2023
1 parent 9d8d669 commit 7134856
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vault/src/issue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ struct RescanStatus {
impl RescanStatus {
// there was a bug pre-v2 that set rescanning status to an invalid range.
// by changing the keyname we effectively force a reset
const KEY: &str = "rescan-status-v3";
const KEY: &str = "rescan-status-v4";
fn update(&mut self, mut issues: Vec<InterBtcIssueRequest>, current_bitcoin_height: usize) {
// Only look at issues that haven't been processed yet
issues.retain(|issue| issue.opentime > self.newest_issue_height);
Expand Down

0 comments on commit 7134856

Please sign in to comment.