Skip to content

Commit

Permalink
fix: empty tx hash (#220)
Browse files Browse the repository at this point in the history
* fix: fixed case when tx hash is empty

* fix: uncommented code
  • Loading branch information
Mikelle authored and mrekucci committed Jul 10, 2024
1 parent 3946648 commit 9d26bb3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion p2p/pkg/preconfirmation/tracker/tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,10 @@ func (t *Tracker) handleNewL1Block(
settled := 0
for _, commitment := range commitments {
if commitment.CommitmentIndex == nil {
failedCommitments = append(failedCommitments, commitment.TxnHash)
t.logger.Debug("commitment index not found", "commitment", commitment)
if commitment.TxnHash != (common.Hash{}) {
failedCommitments = append(failedCommitments, commitment.TxnHash)
}
continue
}
if common.BytesToAddress(commitment.ProviderAddress).Cmp(newL1Block.Winner) != 0 {
Expand Down

0 comments on commit 9d26bb3

Please sign in to comment.