Refactor and enhance node configuration generator and stress tester scripts #1093
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.
This pull request includes significant updates to two scripts:
-Refactored to use more Pythonic code structures and practices
-Improved error handling and input validation
-Enhanced JSON configuration generation for global and local configs
-Added support for generating DHT, catchain, liteserver, and validator configurations
-Implemented base64 encoding and SHA256 hashing for catchain tags
-Added functionality to generate random node IDs when specified
-Complete rewrite of the stress testing script
-Implemented a more robust code generation system for creating test cases
-Added support for various control structures including if-else, loops, and try-catch blocks
-Introduced a State class to manage test execution state
-Implemented multiple Code classes to represent different types of operations
-Added functionality to compile and run generated code using FunC and Fift
-Improved test case generation with configurable parameters
-Enhanced output and error reporting