Finish routing eventualities

Also corrects some misc TODOs and tidies up some log statements.
This commit is contained in:
Luke Parker
2023-04-11 05:49:27 -04:00
parent 9e78c8fc9e
commit 90f2b03595
8 changed files with 171 additions and 50 deletions

View File

@@ -56,6 +56,9 @@ async fn spend<C: Coin, D: Db>(
assert_eq!(outputs[0].kind(), OutputType::Change);
outputs
}
ScannerEvent::Completed(_, _) => {
panic!("unexpectedly got eventuality completion");
}
}
}
@@ -89,6 +92,9 @@ pub async fn test_addresses<C: Coin>(coin: C) {
assert_eq!(outputs[0].kind(), OutputType::Branch);
outputs
}
ScannerEvent::Completed(_, _) => {
panic!("unexpectedly got eventuality completion");
}
};
// Spend the branch output, creating a change output and ensuring we actually get change