Skip to content

Commit

Permalink
Add TODO to check fraud proof priority before validating it
Browse files Browse the repository at this point in the history
Signed-off-by: linning <[email protected]>
  • Loading branch information
NingLin-P committed Mar 14, 2024
1 parent db827f3 commit d2d8ae1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/subspace-service/src/transaction_pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,10 @@ where
let slot_probability = self.chain_constants.slot_probability();
let fraud_proof_submit_sink = self.fraud_proof_submit_sink.clone();
async move {
// TODO: after https://github.com/paritytech/polkadot-sdk/issues/3705 is resolved, check if
// there is already a fraud proof with the same tag and higher priority in the tx pool, if so
// drop the incoming fraud proof before validating it.

let uxt_validity = chain_api
.validate_transaction(at, source, uxt.clone())
.await?;
Expand Down

0 comments on commit d2d8ae1

Please sign in to comment.