Skip to content

Commit

Permalink
fix(chain): check time when persisting
Browse files Browse the repository at this point in the history
  • Loading branch information
rustaceanrob committed Nov 18, 2024
1 parent 3bc45b5 commit 8ec9c0a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/chain/src/rusqlite_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -352,9 +352,10 @@ where
Self::TXS_TABLE_NAME,
))?;
for (&txid, &last_seen) in &self.last_seen {
let checked_time = last_seen.to_sql()?;
statement.execute(named_params! {
":txid": Impl(txid),
":last_seen": Some(last_seen),
":last_seen": Some(checked_time),
})?;
}

Expand Down

0 comments on commit 8ec9c0a

Please sign in to comment.