-
Notifications
You must be signed in to change notification settings - Fork 0
Verkle/hive tests #56
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
base: verkle/base-something
Are you sure you want to change the base?
Conversation
Add network componenets for verkle sync Add verkle state to api and block processing
…ssing add whitespace changes
add the readOnlyNullVerkleStateStore
replace sstore costs with verkle
update test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Overview
This PR introduces new tests and benchmark support for Verkle along with updates to configuration and API interfaces to enable Verkle-related features during block processing. Key changes include:
- Adding a new benchmark class for Verkle world state and updating the benchmark runner.
- Extending configuration and API interfaces with new Verkle-related properties.
- Updating various test and blockchain processing classes to support the Verkle features and to pass in required dependencies.
Reviewed Changes
| File | Description |
|---|---|
| src/Nethermind/Ethereum.Test.Base/IBlockchainTestBase.cs | Adds a new interface for blockchain tests with Setup() and RunTest(). |
| src/Nethermind/Nethermind.Benchmark/Verkle/VerkleWorldStateBenchmark.cs | Implements benchmarks for Verkle world state vs. MPT. |
| src/Nethermind/Nethermind.Api/IInitConfig.cs | Adds new config properties for stateless processing and Verkle proofs. |
| src/Nethermind/Nethermind.Api/InitConfig.cs | Implements the new configuration properties with default values. |
| src/Nethermind/Ethereum.Test.Base/JsonToEthereumTest.cs | Updates network string mappings for test specs. |
| src/Nethermind/Nethermind.Api/IApiWithBlockchain.cs | Adds properties for VerkleTreeStore and VerkleArchiveStore. |
| src/Nethermind/Nethermind.Api/NethermindApi.cs | Extends API with Verkle sync and storage properties. |
| src/Nethermind/Ethereum.Test.Base/BlockchainTestBase.cs | Changes to concrete implementation and method accessibility. |
| src/Nethermind/Ethereum.Test.Base/TestBlockJson.cs | Adds JSON mapping for ExecutionWitness using a custom converter. |
| src/Nethermind/Ethereum.Test.Base/LoadBlockchainTestsStrategy.cs | Updates test directory enumeration to use subdirectories. |
| src/Nethermind/Nethermind.Api/IApiWithNetwork.cs | Adds VerkleSyncServer property to network API interface. |
| src/Nethermind/Nethermind.Blockchain.Test/BlockProcessorTests.cs | Updates tests to inject IBlockTree dependency. |
| src/Nethermind/Nethermind.Blockchain.Test/FullPruning/FullPruningDiskTest.cs | Updates Build method signature to include genesisAllocation parameter. |
| src/Nethermind/Nethermind.AccountAbstraction.Test/AccountAbstractionRpcModuleTests.TestAccountAbstractionRpcBlockchain.cs | Updates Build method signature to include genesisAllocation. |
| src/Nethermind/Nethermind.Benchmark.Runner/Program.cs | Adds the Verkle benchmark assembly to the benchmark runner. |
| src/Nethermind/Nethermind.AccountAbstraction/Executor/AABlockProducerTransactionsExecutor.cs | Updates transaction processing to use executionTracer. |
| src/Nethermind/Nethermind.AuRa.Test/Contract/TxPriorityContractTests.cs | Updates Build method signature to include genesisAllocation. |
| src/Nethermind/Nethermind.AuRa.Test/AuraBlockProcessorTests.cs | Simplifies the constructor argument for WithdrawalProcessor. |
Copilot reviewed 454 out of 454 changed files in this pull request and generated 1 comment.
| [ConfigItem(Description = "If 'true' then the verkle proof in blocks are verified while block processing", DefaultValue = "false")] | ||
| bool VerifyProofsInBlock { get; set; } | ||
|
|
||
| [ConfigItem(Description = "If 'true' then the verkle proof in blocks are verified while block processing", DefaultValue = "false")] |
Copilot
AI
Mar 5, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The descriptions for 'VerifyProofsInBlock' and 'GenerateVerkleProofsForBlock' are identical, potentially causing confusion. Please update the description for one of these properties to accurately reflect its distinct functionality.
| [ConfigItem(Description = "If 'true' then the verkle proof in blocks are verified while block processing", DefaultValue = "false")] | |
| [ConfigItem(Description = "If 'true' then verkle proofs are generated for blocks during block processing", DefaultValue = "false")] |
Fixes Closes Resolves #
Please choose one of the keywords above to refer to the issue this PR solves followed by the issue number (e.g. Fixes #000). If no issue number, remove the line. Also, remove everything marked optional that is not applicable. Remove this note after reading.
Changes
Types of changes
What types of changes does your code introduce?
Testing
Requires testing
If yes, did you write tests?
Notes on testing
Optional. Remove if not applicable.
Documentation
Requires documentation update
If yes, link the PR to the docs update or the issue with the details labeled
docs. Remove if not applicable.Requires explanation in Release Notes
If yes, fill in the details here. Remove if not applicable.
Remarks
Optional. Remove if not applicable.