Skip to content

Return started-sync without awaiting address history sync - #1143

Merged
ScottMcDermid merged 1 commit into
masterfrom
cursor/background-address-tx-sync-22bf
Nov 7, 2026
Merged

ScottMcDermid merged 1 commit into
masterfrom
cursor/background-address-tx-sync-22bf

Conversation

@Klakurka

@Klakurka Klakurka commented Nov 7, 2026

Copy link
Copy Markdown
Member

Related to #

Description

GET /api/address/transactions/[address] waited for the full Chronik and database sync before responding. The route now starts that sync in the background, the same way the paybutton routes do, and returns "Sync started" immediately.

Merge this after the addressExists pool-error fix. Until that lands, a pool timeout is still classified as a missing address, and this change would start a background sync for those failures.

Test plan

  • Unknown addresses still return STARTED_SYNC_200.
  • The sync is no longer on the request path. Integration coverage of that 200 was not re-run here because the test database host is not reachable in this environment.
Open in Web Open in Cursor 

Awaiting syncAndSubscribeAddresses held the HTTP request open for the
full Chronik/DB sync. Fire it in the background, matching the paybutton
routes, so the client gets STARTED_SYNC immediately.

Co-authored-by: David <Klakurka@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 59 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 1dba5be9-4d6b-4241-8056-677db1852079
Commits

Reviewing files that changed from the base of the PR and between cac26a3 and 3417dd8.

Files selected for processing: 1

  • pages/api/address/transactions/[address].ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@ScottMcDermid ScottMcDermid left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't appear to break anything

@ScottMcDermid
ScottMcDermid merged commit c78c8f2 into master Nov 7, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants