[wallet] Store the block height and timestamp after syncing
Closes #455
This commit is contained in:
@@ -1554,6 +1554,15 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
let last_sync_time = ConfirmationTime {
|
||||
height: maybe_await!(self.client.get_height())?,
|
||||
timestamp: time::get_timestamp(),
|
||||
};
|
||||
debug!("Saving `last_sync_time` = {:?}", last_sync_time);
|
||||
self.database
|
||||
.borrow_mut()
|
||||
.set_last_sync_time(last_sync_time)?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user