Skip to content

Commit

Permalink
Remove unnecessary check
Browse files Browse the repository at this point in the history
  • Loading branch information
howardwu committed Oct 26, 2023
1 parent 1d621e8 commit 301573b
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions synthesizer/src/vm/verify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,6 @@ impl<N: Network, C: ConsensusStorage<N>> VM<N, C> {
bail!("Transaction '{}' already exists in the ledger", transaction.id())
}

// Ensure the rejected ID is unique.
if let Some(rejected_id) = rejected_id {
if self.block_store().contains_rejected_deployment_or_execution_id(&rejected_id)? {
bail!("Transaction '{}' already exists in the ledger", rejected_id)
}
}

// Compute the Merkle root of the transaction.
match transaction.to_root() {
// Ensure the transaction ID is correct.
Expand Down

0 comments on commit 301573b

Please sign in to comment.