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

Confuse about the test helper function [buildAccumulatorData] #1935

Closed
fearlessfe opened this issue Dec 12, 2023 · 0 comments
Closed

Confuse about the test helper function [buildAccumulatorData] #1935

fearlessfe opened this issue Dec 12, 2023 · 0 comments

Comments

@fearlessfe
Copy link

The function buildAccumulatorData in file fluffy/tests/test_helpers.nim

when accumulator.currentEpoch.len() equal to epochSize, add the currentEpoch to epochAccumulators
image

but in the updateAccumulator, when currentEpoch.currentEpoch.len() equal to epochSize, a new epoch will start
image

so after call the updateAccumulator, the length of currentEpoch will nevel be the epochSize

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

No branches or pull requests

1 participant