REVERT BEFORE USING: make BA today function, bridge_table public for testing

This commit is contained in:
onyinyang 2023-02-09 16:24:43 -05:00
parent 0e960d9156
commit fd4f715ad9
No known key found for this signature in database
GPG Key ID: 156A6435430C2036
1 changed files with 3 additions and 3 deletions

View File

@ -224,7 +224,7 @@ pub struct BridgeAuth {
pub bridgedb_pub: PublicKey,
/// The bridge table
bridge_table: BridgeTable,
pub bridge_table: BridgeTable,
/// The migration tables
trustup_migration_table: MigrationTable,
@ -398,7 +398,7 @@ impl BridgeAuth {
self.time_offset += time::Duration::days(1);
}
#[cfg(test)]
//#[cfg(test)]
/// For testing only: manually advance the day by the given number
/// of days
pub fn advance_days(&mut self, days: u16) {
@ -406,7 +406,7 @@ impl BridgeAuth {
}
/// Get today's (real or simulated) date
fn today(&self) -> u32 {
pub fn today(&self) -> u32 {
// We will not encounter negative Julian dates (~6700 years ago)
// or ones larger than 32 bits
(time::OffsetDateTime::now_utc().date() + self.time_offset)