config: add EnableBatchVerification option#6454
Merged
gmalouf merged 2 commits intoalgorand:masterfrom Oct 10, 2025
Merged
Conversation
algorandskiy
approved these changes
Oct 3, 2025
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds a new configuration option EnableBatchVerification to control the use of ed25519 batch verification in the consensus algorithm, defaulting to enabled. This builds on work from PR #6440 by providing an option to disable the feature if issues arise.
Key changes include:
- Added the new configuration option with default value
true - Updated configuration version from 36 to 37
- Integrated the batch verifier setting into the main application startup
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| test/testdata/configs/config-v37.json | New test configuration file with version 37 including the EnableBatchVerification option |
| installer/config.json.example | Updated example config to version 37 with the new batch verification option |
| config/local_defaults.go | Updated default configuration version and added EnableBatchVerification default |
| config/localTemplate.go | Added EnableBatchVerification field definition to the Local struct |
| cmd/algod/main.go | Added call to configure the batch verifier based on the configuration setting |
Comments suppressed due to low confidence (1)
config/localTemplate.go:1
- Corrected spelling of 'Transcations' to 'Transactions'.
// Copyright (C) 2019-2025 Algorand, Inc.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
gmalouf
approved these changes
Oct 10, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This enables by default the ed25519consensus BatchVerifier implementation from #6440. It can be disabled in case of unexpected issues if necessary.
Test Plan
Existing tests should pass.