Summary
Release v7.0.2 includes performance optimizations for daemon communication and version updates for both FluxOS and the Flux daemon.
Key Changes
Performance Optimization
Daemon Call Throttling: Implemented 30-second throttling for daemon nodelist RPC calls to reduce excessive requests during rapid blockchain synchronization
Caches nodelist results for 30 seconds between calls
Logs throttling activity with countdown timer for next allowed call
Automatically resets cache on service stop
Significantly reduces daemon load during periods of rapid block sync
Version Updates
FluxOS: 7.0.0 → 7.0.2
Flux Daemon: 9000250 → 9000350
Bug Fixes
Added missing log import in socketServer.js
Added missing module imports in advancedWorkflows.js for application reinstallation workflow
Testing
Added comprehensive unit tests for daemon call throttling mechanism in networkStateService.test.js
Technical Details
The throttling mechanism in networkStateService.js maintains a simple in-memory cache with timestamp tracking:
Only throttles when cached data is available and less than 30 seconds old
Returns cached nodelist immediately when within throttle window
Updates cache only on successful daemon calls
Provides visibility through info-level logging
Impact
This release improves node performance during blockchain synchronization periods by reducing redundant daemon calls while maintaining data freshness for network state management.