Skip to content

Conversation

@DiyiWi
Copy link
Contributor

@DiyiWi DiyiWi commented Dec 16, 2021

No description provided.

validators = dynamicValidator.Pem[len(dynamicValidator.Height)-1]
} else {
index := sort.Search(len(dynamicValidator.Height), func(i int) bool { return dynamicValidator.Height[i+1] > dynamicProof.height })
validators = dynamicValidator.Pem[index]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sure len(dynamicValidator.Height) > 1

@DiyiWi DiyiWi force-pushed the for-fabric-simple-dynamic-validator branch from 82c6e08 to 43c2612 Compare December 16, 2021 08:33
@DiyiWi DiyiWi force-pushed the for-fabric-simple-dynamic-validator branch from 43c2612 to 8c1d7b7 Compare December 16, 2021 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants