Skip to content

Commit

Permalink
Merge pull request AleoNet#2109 from AleoHQ/hotfix/check
Browse files Browse the repository at this point in the history
Reduce a check for the cm
  • Loading branch information
howardwu authored Oct 19, 2023
2 parents d7be84c + aa33cfa commit 1068c12
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ledger/block/src/verify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -552,8 +552,9 @@ impl<N: Network> Block<N> {
// Ensure there are no more transactions in the block.
ensure!(unconfirmed_transaction_ids.next().is_none(), "There exists more transactions than expected.");

// TODO: Move this check to be outside of this method, and check against the ledger for existence.
// Ensure there are no aborted or existing solution IDs.
ensure!(aborted_or_existing_solution_ids.is_empty(), "Block contains aborted or already-existing solutions.");
// ensure!(aborted_or_existing_solution_ids.is_empty(), "Block contains aborted or already-existing solutions.");
// Ensure the aborted transaction IDs match.
for aborted_transaction_id in aborted_transaction_ids {
// If the aborted transaction ID is not found, throw an error.
Expand Down

0 comments on commit 1068c12

Please sign in to comment.