Correct compilation errors

This commit is contained in:
Luke Parker
2024-08-23 21:21:02 -04:00
parent bc0cc5a754
commit ce805c8cc8
8 changed files with 77 additions and 50 deletions

View File

@@ -5,7 +5,7 @@
use serai_db::{Db, DbTxn};
use primitives::{Id, Block};
use primitives::{Id, OutputType, Block};
// TODO: Localize to ReportDb?
use crate::{db::ScannerDb, ScannerFeed, ContinuallyRan};
@@ -40,20 +40,8 @@ impl<D: Db, S: ScannerFeed> ContinuallyRan for ReportTask<D, S> {
for b in next_to_potentially_report ..= highest_reportable {
if ScannerDb::<S>::is_block_notable(&self.db, b) {
let outputs = todo!("TODO");
let in_instructions_to_report = vec![];
for output in outputs {
match output.kind() {
// These do get reported since the scanner eliminates any which shouldn't be reported
OutputType::External => todo!("TODO"),
// These do not get reported in Batches
OutputType::Branch | OutputType::Change => {}
// These now get reported if they're legitimately forwarded
OutputType::Forwarded => {
todo!("TODO")
}
}
}
let in_instructions = todo!("TODO");
// TODO: Also pull the InInstructions from forwarding
todo!("TODO: Make Batches, which requires handling Forwarded within this crate");
}