Skip to content

perf(register): parallelize D1 STX check + BTC kv.get in /api/register #777

Description

@whoabuddy

Spun off from PR #776 review (Copilot). The D1 STX dup-check and BTC kv.get currently run sequentially. Could kick off both in parallel (Promise.all), await STX first, discard BTC if STX is taken. Requires care: BTC error must still surface as BTC_ADDRESS_TAKEN, not bubble as 5xx.

Why deferred: out-of-scope for #776 (D1 cutover); separate perf concern.

Refs #762 #776

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions