Tidy Borromean, fix bugs in last commit, replace todo! with unreachable!

This commit is contained in:
Luke Parker
2023-07-03 10:15:56 -04:00
parent c20f85da64
commit 15546b6e27
6 changed files with 72 additions and 83 deletions

View File

@@ -708,9 +708,7 @@ impl SignableTransaction {
clsags.append(&mut clsag_pairs.iter().map(|clsag| clsag.0.clone()).collect::<Vec<_>>());
pseudo_outs.append(&mut clsag_pairs.iter().map(|clsag| clsag.1).collect::<Vec<_>>());
}
_ => {
todo!()
}
_ => unreachable!("attempted to sign a TX which wasn't CLSAG"),
}
Ok(tx)
}