Skip to content

feat: return each swap's payment hash from pubky_swaps_advance #232

In review

Description

@coreyphillips

A swap rebuilt by pubky_swaps_restore keeps no hold invoice, and the restore report lists only swap IDs, so the app can't tie a restored swap to its hold payment. If that payment later fails, the app keeps advancing the swap (synonymdev/bitkit-ios#1386 review).

record_payment_hash already derives the hash for any record. Add payment_hash_hex to PubkySwapRouteStatus, so the app records it on the first advance and stops the swap once the node shows the payment failed.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions