Correct publication of Completed Tributary TXs

This commit is contained in:
Luke Parker
2023-09-02 00:50:54 -04:00
parent fddc605c65
commit cd4c3a6c88
3 changed files with 13 additions and 2 deletions

View File

@@ -550,6 +550,11 @@ pub async fn handle_application_tx<
}
}
Transaction::SignCompleted { plan, tx_hash, .. } => {
log::info!(
"on-chain SignCompleted claims {} completes {}",
hex::encode(&tx_hash),
hex::encode(plan)
);
// TODO: Confirm this is a valid plan ID
// TODO: Confirm this signer hasn't prior published a completion
let Some(key_pair) = TributaryDb::<D>::key_pair(txn, spec.set()) else { todo!() };