Skip to content

Commit

Permalink
fix: update log
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-bisonai committed Dec 10, 2024
1 parent 81c70cc commit 023590d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions node/pkg/dal/collector/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ func getSignerListFromProofs(hash []byte, proofChunks [][]byte) ([]klaytncommon.
func checkForNonWhitelistedSigners(signers []klaytncommon.Address, whitelist []klaytncommon.Address) error {
for _, signer := range signers {
if !isWhitelisted(signer, whitelist) {
log.Error().Str("Player", "DAL").Any("signers", signers).Str("signer", signer.Hex()).Msg("non-whitelisted signer")
log.Error().Str("Player", "DAL").Any("signers", signers).Any("signer", signer).Msg("non-whitelisted signer")
return errorsentinel.ErrDalSignerNotWhitelisted
}
}
Expand All @@ -165,7 +165,7 @@ func checkForNonWhitelistedSigners(signers []klaytncommon.Address, whitelist []k

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

0 comments on commit 023590d

Please sign in to comment.