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

avoid rejecting empty era file in verification #6163

Merged
merged 1 commit into from
Apr 3, 2024

Conversation

etan-status
Copy link
Contributor

batchVerify's precondition is a non-empty signature list:

  if input.len == 0:
    # Spec precondition
    return false

This means that in eras without any blocks (as has happened on Goerli), calling it leads to era files being reported as invalid.

`batchVerify`'s precondition is a non-empty signature list:

```nim
  if input.len == 0:
    # Spec precondition
    return false
```

This means that in eras without any blocks (as has happened on Goerli),
calling it leads to era files being reported as invalid.
Copy link

github-actions bot commented Apr 2, 2024

Unit Test Results

         9 files  ±0    1 115 suites  ±0   30m 20s ⏱️ + 5m 20s
  4 245 tests ±0    3 898 ✔️ ±0  347 💤 ±0  0 ±0 
16 929 runs  ±0  16 531 ✔️ ±0  398 💤 ±0  0 ±0 

Results for commit 6cfcd87. ± Comparison against base commit 109007d.

@arnetheduck arnetheduck merged commit 6a318d0 into unstable Apr 3, 2024
13 checks passed
@arnetheduck arnetheduck deleted the dev/etan/ex-emptyera branch April 3, 2024 08:06
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.

None yet

3 participants