We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
authorities
1 parent 7886318 commit 1072888Copy full SHA for 1072888
lib/babe/verify.go
@@ -390,7 +390,7 @@ func (b *verifier) verifyPreRuntimeDigest(digest *types.PreRuntimeDigest) (scale
390
authIdx = d.AuthorityIndex
391
}
392
393
- if len(b.authorities) <= int(authIdx) {
+ if uint64(len(b.authorities)) <= uint64(authIdx) {
394
logger.Tracef("verifyPreRuntimeDigest invalid auth index %d, we have %d auths",
395
authIdx, len(b.authorities))
396
return nil, ErrInvalidBlockProducerIndex
0 commit comments