More misc bug fixes

This commit is contained in:
Luke Parker
2022-10-24 06:18:16 -04:00
parent 05be5c14c3
commit 9b8f2f4487
3 changed files with 9 additions and 8 deletions

View File

@@ -3,6 +3,7 @@ use std::{
sync::{Arc, RwLock},
task::{Poll, Context},
future::Future,
time::{UNIX_EPOCH, SystemTime},
};
use sp_core::Decode;
@@ -126,7 +127,7 @@ where
)
.map(|commit| commit.end_time)
// TODO: Genesis start time
.unwrap_or(0),
.unwrap_or_else(|_| SystemTime::now().duration_since(UNIX_EPOCH).unwrap().as_secs()),
),
import_clone
.get_proposal(&import_clone.client.header(BlockId::Number(0u8.into())).unwrap().unwrap())