allowsCancel static method

bool allowsCancel(
  1. String? status
)

Whether a payment with this status may be cancelled: when the source said it does not know the transaction, or when ARC reports it contested (DOUBLE_SPEND_ATTEMPTED, bead libspiffy-ey2: the user may give it up; if it is mined anyway, the wallet records it as seen). Any other status ARC reports for a transaction it holds (queued, stored, sent, seen, mined, orphan mempool, ...) means it is on its way to miners.

Implementation

static bool allowsCancel(String? status) => status == notFound || status == doubleSpendAttempted;