Skip to content

Is FallbackBroadcasted session outcome variant necessary? #1138

Closed

Description

@spacebear21

I'm not sure that this new variant is necessary, wouldn't a Failure or Cancel be appropriate?

Originally posted by @spacebear21 in #1061 (comment)

Activity

  1. added this to the payjoin-1.0 milestone on Oct 2, 2025
  2. zealsham commented on Dec 8, 2025

    @zealsham
    Collaborator

    I think it's a choice of explicity stating that a fallback TX was broadcasted vs implicitly assuming that it was. For the failure/cancel events, depending on the reason of failure/cancel fallback TX can be broadcasted, while adding fallbackbroadcasted event basically tell that the sessionevent transitioned to a state where the fallback tx was definitely broadcasted.

  3. changed the title [-]Is FallbackBroadcasted session event variant necessary?[/-] [+]Is FallbackBroadcasted session outcome variant necessary?[/+] on Mar 25, 2026
  4. DanGould commented on Apr 22, 2026

    @DanGould
    Member

    @spacebear21 is this closed by #1496 and #1470

  5. DanGould commented on Apr 25, 2026

    @DanGould
    Member

    I'm going to guess it is

  6. spacebear21 commented on Apr 27, 2026

    @spacebear21
    CollaboratorAuthor

    The distinction between the FallbackBroadcasted and Cancel variants is that the former is always sender-initiated and the latter is always receiver-initiated. Perhaps the names could be clearer, or at last this distinction should be clear in doc strings.

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

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions