Skip to content

Wire up settlement engine and indexer in API main.go #55

Description

@dotunv

Description

The API server's main.go creates the settlement engine and indexer but assigns them to blank identifiers, meaning they are never actually used:

File: cmd/api/main.go (lines 119, 122)

_ = engine  // settlement engine
_ = idx     // indexer

Impact

  • Settlement engine is never initialized
  • Indexer never starts syncing
  • These subsystems are completely dead in the API process

Proposed Fix

Wire up the engines properly:

  1. Initialize settlement engine with required dependencies
  2. Start indexer as a background goroutine
  3. Ensure graceful shutdown

Acceptance Criteria

  • Settlement engine is properly initialized
  • Indexer starts syncing in the background
  • Both shut down gracefully on server stop
  • No blank identifier assignments remain

Labels

bug backend

Metadata

Metadata

Assignees

No one assigned

    Labels

    GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Campaign: Official Campaign | FWC26backendBackend / API workbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions