Conversation
…tions with defaults for interx setup
…d interx/block.go
…version printing issues"
…y and maintainability
Implemented a revised directory structure for caching to improve scalability and organization. This update simplifies cache management and enhances readability for future development.
…er performance Removed background tasks that were no longer in use to streamline the application. Updated the design to improve overall system performance and reduce resource consumption.
Revised error handling mechanisms to make them more robust and easier to maintain. Organized log structures for better readability and debugging efficiency.
….Replaced PutCache with AddCache to include cache size checks and automated cleanup. Introduced folder size monitoring with a 2GB limit and a mechanism to clear old cache.Simplified GetCache logic for cache misses and error handling. Added functionality to check cache expiration based on a 5-block duration.Refactored logging for better debugging and consistency.
…oblems during genesis setup. Ensured proper handling of edge cases to improve stability.
|
This repository does not accept pull requests from non version branches. |
|
This repository does not accept pull requests from non version branches. |
|
This repository does not accept pull requests from non version branches. |
…nstance is reused throughout your application
…into fix/cache-issue
|
This repository does not accept pull requests from non version branches. |
|
This repository does not accept pull requests from non version branches. |
|
This repository does not accept pull requests from non version branches. |
|
This repository does not accept pull requests from non version branches. |
|
This repository does not accept pull requests from non version branches. |
PR Description:
This pull request introduces significant improvements to cache management, refactors error handling, and resolves a genesis initialization issue. Key updates include:
1- Cache Management Enhancements:
Rfactored AddCache function to introduce better handling of cache directories and file management.
Implemented a size limit (2GB) for the cache directory, with automatic cleanup of old files when the limit is exceeded.
Added folder size monitoring using a streamlined utility to calculate directory size.
Simplified the GetCache logic with enhanced error handling for cache misses and malformed data.
Introduced a cachedDuration function to check and manage cache expiration based on a 5-block duration.
Enhanced searchcache functionality.
Improved logging to provide consistent and detailed debugging information across all cache operations.
2- Refactor and Cleanup:
Organized error handling for better maintainability and readability.
Streamlined the implementation of logging, ensuring clarity and consistency.
Remove and cleanup unused old codes which need tp pass to the tasks and optimized them.
3- Bug Fixes:
Resolved an issue in the genesis setup process that was causing initialization failures in specific scenarios.
Improved stability by addressing edge cases during the genesis configuration.
These changes collectively enhance the performance, reliability, and maintainability of the system, especially in managing cached data and handling initialization processes.
4- Testing Instructions: Deploy the branch to the devnet environment and monitor its behavior to confirm that the crashing points have been resolved. Ensure to test the following scenarios:
Validate the cache management functionality under load.
Observe system stability and log outputs for any anomalies.
5- Run Command :
interxd start --verbose (printing cache)
interxd start (without printing cache)