Skip to content
This repository was archived by the owner on Jan 16, 2023. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/transaction/history/dynamodb/dynamodb.go
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ func (db *db) checkDoubleInsertMatch(ctx context.Context, txHash []byte, entry *

// In theory an error can occur after submission.
// Therefore, we only check equality if there's an error already set.
if len(prevSol.TransactionError) > 0 && !bytes.Equal(prevSol.TransactionError, sol.TransactionError) {
if len(prevSol.TransactionError) > 0 && len(sol.TransactionError) > 0 && !bytes.Equal(prevSol.TransactionError, sol.TransactionError) {
return errors.Wrap(history.ErrInvalidUpdate, "double insert with different entries detected (transaction error)")
}

Expand Down