Skip to content

phoenixd-mock: /decodeinvoice returns no paymentHash, so payment-adapter 0.17.2 RECEIVE lookups fail #67

Closed

Description

@tcheeric

Problem

payment-adapter 0.17.2 now looks up RECEIVE quotes by calling phoenixd /decodeinvoice. The staging phoenixd-mock answers without a paymentHash, so each lookup fails as unavailable.

On staging, after the 2026-10-05 deploy (16:09-16:17Z), this caused:

  • 44 phoenixd_lookup_failed across 10 quotes;
  • 22 mint 500s;
  • a brief MintCircuitBreakerFlapping alert and a brief CashuMintSlowTasks alert. Both cleared by 16:28Z.

Fix

Make the mock's /decodeinvoice return paymentHash (and the other fields real phoenixd returns) for invoices it issued, matching the real phoenixd API response shape.

Acceptance

  • On staging with payment-adapter 0.17.2, a RECEIVE quote lookup succeeds against the mock.
  • There are no phoenixd_lookup_failed entries on a normal Sell or receive.

Activity

  1. added a commit that references this issue on Oct 5, 2026
  2. added
    severity:1Highest: observed on staging or certain when the path runs
    on Oct 20, 2026
  3. tcheeric commented on Oct 20, 2026

    @tcheeric
    CollaboratorAuthor

    Fixed and verified on staging. Closing.

    Fix: phoenixd-java #68 (merge 01ea3b9, v0.3.3): the mock's /decodeinvoice returns paymentHash, and it serves GET /payments/incoming/{hash}. Staging was pinned to it by imani-deploy #123 (7b3d24f).

    Deployed: the staging phoenixd-mock container, together with payment-adapter on phoenixd-java 0.3.3 (payment-adapter#256, today 0.23.0 f3fc718a).

    Verified (read-only, last 7 days):

    • The mint's /decodeinvoice -> /payments/incoming/<hash> lookups against phoenixd-mock:9740 all answered 200 (69/69).
    • 0 phoenixd_lookup_failed in imani-mint-rest and in payment-adapter.
    • The mock logs show Created invoice payment_hash=…, then auto-settle, then Quote updated to PAID.

    Both acceptance points hold.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    severity:1Highest: observed on staging or certain when the path runs

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions