Skip to content

Commit

Permalink
Update state_hash.go
Browse files Browse the repository at this point in the history
  • Loading branch information
nickeskov authored Oct 18, 2024
1 parent 65ca53e commit f30e3dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/analysis/criteria/state_hash.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func (c *StateHashCriterion) handleSamplesPair(
)
}
}
forkDepth := int64(bucketHeight) - int64(lastCommonStateHashHeight) //#nosec: height can't be negative, but the diff can
forkDepth := int64(bucketHeight) - int64(lastCommonStateHashHeight) //#nosec: the diff can be negative

if forkDepth != 0 {
msg := "StateHashCriterion: fork detected"
Expand Down

0 comments on commit f30e3dc

Please sign in to comment.