Skip to content

bug: automatic allowance payment takes about 40 seconds after the request arrives #1614

Open

Description

@ovitrif

Refs:

What happened?

On two regtest emulators, the payer's "Payment Executed" notification for a $2 automatic allowance payment appeared about 40 seconds after the payee sent the request, with the pending-request bell visible in the meantime.

The payer already receives private messages from linked contacts on every 10-second payment request poll, so the time is spent elsewhere. Candidates to measure:

  • the payee's outgoing request waiting for its next full Paykit round (30 or 60 seconds) before it is sent;
  • the request being deferred until the payee publishes a newer private payment list after the previous one was used;
  • the Lightning payment and its settlement event.

Expected behavior

A request covered by an allowance is paid within a few seconds of arriving, and does not show in the pending-request bell while it is being paid.

Steps to Reproduce

  1. Set and accept a $5 a payment, $50 a month allowance between two instances (set-and-accept.xml).
  2. On the payee, send the payer a $2 Payment Request.
  3. Time the payer's "Payment Executed" notification and watch the bell.

Bitkit Version

Unreleased: allowances branch of #1340.

Reproducibility

Seen once during review on two Android emulators; not yet timed against the logs.

Activity

  1. added this to the 3.2.0 milestone on Oct 20, 2026
  2. added theissue type on Oct 20, 2026
  3. ovitrif commented on Oct 21, 2026

    @ovitrif
    CollaboratorAuthor

    Measured in the cross-device run on #1340 at e7b4477 against synonymdev/bitkit-ios#799, staging regtest (#1340 (comment)). From the Android payer's log, per automatic $2 or $4 payment:

    • about 20 to 30 s from the payee's send tap to the request stored on the payer;
    • about 16 to 19 s waiting for "Consumed private Paykit payment list version N", the payee's new private payment list, on every request including the first;
    • about 2 to 3 s to hand the payment to the node, and 3 to 4 s to the "Payment Executed" notification.

    Send to "Payment Executed" was 39 to 66 s with Android paying and 56 to 65 s with iOS paying. The payment-list wait is the largest step after delivery.

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

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions