]> Untitled Git - bdk/commitdiff
fix(chain): check time when persisting
authorRob N <rob.netzke@gmail.com>
Mon, 18 Nov 2024 21:52:38 +0000 (11:52 -1000)
committerRob N <rob.netzke@gmail.com>
Mon, 18 Nov 2024 23:30:57 +0000 (13:30 -1000)
crates/chain/src/rusqlite_impl.rs

index 2cc4481c9e62555d8ff9cb7d19449c6edafcb7fc..6df4d9f45eb837cbbad6d348dd2f463599a9d622 100644 (file)
@@ -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),
             })?;
         }