Stub out Scheduler in the Monero processor

This commit is contained in:
Luke Parker
2024-09-14 01:38:31 -04:00
parent e1ad897f7e
commit a2d9aeaed7
6 changed files with 178 additions and 72 deletions

View File

@@ -46,16 +46,17 @@ impl ReceivedOutput<<Ed25519 as Ciphersuite>::G, Address> for Output {
type TransactionId = [u8; 32];
fn kind(&self) -> OutputType {
if self.0.subaddress() == EXTERNAL_SUBADDRESS {
let subaddress = self.0.subaddress().unwrap();
if subaddress == EXTERNAL_SUBADDRESS {
return OutputType::External;
}
if self.0.subaddress() == BRANCH_SUBADDRESS {
if subaddress == BRANCH_SUBADDRESS {
return OutputType::Branch;
}
if self.0.subaddress() == CHANGE_SUBADDRESS {
if subaddress == CHANGE_SUBADDRESS {
return OutputType::Change;
}
if self.0.subaddress() == FORWARDED_SUBADDRESS {
if subaddress == FORWARDED_SUBADDRESS {
return OutputType::Forwarded;
}
unreachable!("scanned output to unknown subaddress");