Skip to content

Commit

Permalink
Remove old TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
kayabaNerve committed Dec 3, 2023
1 parent ce03897 commit 4446a36
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion coordinator/src/tributary/handle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@ pub(crate) async fn handle_application_tx<
};

// If they've already published a TX for this attempt, slash
// This shouldn't be reachable since nonces were made inserted by the coordinator, yet it's a
// cheap check to leave in for safety
if DataDb::get(txn, genesis, data_spec, &signed.signer.to_bytes()).is_some() {
fatal_slash::<D>(txn, genesis, signed.signer.to_bytes(), "published data multiple times");
return Accumulation::NotReady;
Expand Down Expand Up @@ -409,7 +411,6 @@ pub(crate) async fn handle_application_tx<
}
}

// TODO: Only accept one of either InvalidDkgShare/DkgConfirmed per signer
// TODO: Ban self-accusals
Transaction::InvalidDkgShare { attempt, accuser, faulty, blame, signed } => {
let range = spec.i(signed.signer).unwrap();
Expand Down

0 comments on commit 4446a36

Please sign in to comment.