Skip to content

Commit

Permalink
rewrite update
Browse files Browse the repository at this point in the history
  • Loading branch information
tudor-malene committed Jun 7, 2024
1 parent 27bf2e3 commit 52f2d31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/enclave/storage/enclavedb/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func updateCanonicalValue(ctx context.Context, dbtx *sql.Tx, isCanonical bool, b
return err
}

updateBatches := "update batch set is_canonical=? where l1_proof in (select id from block where " + currentBlocks + ")"
updateBatches := "update batch set is_canonical=? where " + repeat(" l1_proof_hash=? ", "OR", len(blocks))
_, err = dbtx.ExecContext(ctx, updateBatches, args...)
if err != nil {
return err
Expand Down

0 comments on commit 52f2d31

Please sign in to comment.