Skip to content

Commit

Permalink
[DAL] Hotfix addr comparison (#2336)
Browse files Browse the repository at this point in the history
* feat: add log

* fix: update comparison logic

* fix: remove debug log
  • Loading branch information
nick-bisonai authored Dec 10, 2024
1 parent 4880eb2 commit 4e13ee6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion node/pkg/dal/collector/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"bytes"
"context"
"errors"
"strings"
"time"

"bisonai.com/miko/node/pkg/chain/websocketchainreader"
Expand Down Expand Up @@ -164,7 +165,7 @@ func checkForNonWhitelistedSigners(signers []klaytncommon.Address, whitelist []k

func isWhitelisted(signer klaytncommon.Address, whitelist []klaytncommon.Address) bool {
for _, w := range whitelist {
if w == signer {
if strings.EqualFold(w.Hex(), signer.Hex()) {
return true
}
}
Expand Down

0 comments on commit 4e13ee6

Please sign in to comment.