Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(fabric):support simple dynamic validator #140

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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.

2 participants