Have the Coordinator scan the Substrate genesis block

Also adds a workflow for running tests/coordinator.
This commit is contained in:
Luke Parker
2023-08-02 12:18:50 -04:00
parent d5c787fea2
commit aab8a417db
6 changed files with 56 additions and 11 deletions

View File

@@ -107,7 +107,7 @@ pub async fn scan_substrate<D: Db, Pro: Processors>(
log::info!("scanning substrate");
let mut db = substrate::SubstrateDb::new(db);
let mut last_substrate_block = db.last_block();
let mut next_substrate_block = db.next_block();
loop {
match substrate::handle_new_blocks(
@@ -126,7 +126,7 @@ pub async fn scan_substrate<D: Db, Pro: Processors>(
},
&processors,
&serai,
&mut last_substrate_block,
&mut next_substrate_block,
)
.await
{