refactor(node): create an ouroboros package
Signed-off-by: Chris Gianelloni <[email protected]>
Signed-off-by: Chris Gianelloni <[email protected]>
Signed-off-by: Chris Gianelloni <[email protected]>
Support was added with CPP to extent the existing range of support.
- Add network-level tip status service with automatic refresh - Implement shared tip status cache to reduce redundant API calls - Add staggered wallet syncs to distribute load across interval - Update sync manager to fetch tip status once per network - Pass shared tip status to wallet sync operations - Update transaction manager to accept optional tip status parameter - Fix type imports and ensure functional style (no classes) Performance improvements: - 90%+ reduction in tip status API calls (from N calls to 1 per sync cycle) - Smooth server load distribution with staggered syncs - Single source of truth for tip status per network
Signed-off-by: Chris Gianelloni <[email protected]>
- Add useBackendZero feature flag (defaults to true) - Create legacy-api-preserved folder with complete legacy implementations - Refactor api.ts to route based on feature flag - When flag is false, bypass backend-zero and use legacy API directly - When flag is true, use backend-zero with fallback to legacy-api/fallback.ts - Update documentation with feature flag usage and rollback procedure
to avoid duplication