Skip to content

Commit

Permalink
Merge pull request #56 from j75689/fix/doublesign_checker
Browse files Browse the repository at this point in the history
fix double sign check function
  • Loading branch information
unclezoro authored Apr 17, 2023
2 parents 8287e47 + 6315904 commit 76789d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion relayer/double_sign_monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func isDoubleSignHeaders(headers [2]*bsc.Header) bool {
if headers[0].Number != (headers[1].Number) {
return false
}
if bytes.Equal(headers[0].ParentHash[:], headers[1].ParentHash[:]) {
if !bytes.Equal(headers[0].ParentHash[:], headers[1].ParentHash[:]) {
return false
}
signature1, err := headers[0].GetSignature()
Expand Down

0 comments on commit 76789d5

Please sign in to comment.