Validate a payment request is still valid prior to payment #60

pull aalness wants to merge 1 commits into bitcoin:master from aalness:aalness_bip70 changing 1 files +1 −0
  1. aalness commented at 10:30 PM on May 2, 2014: contributor

    Currently there exists the potential for a user to load a payment request into their wallet which is valid at that time but its expiration lapses prior to the user authorizing the payment. This could lead to an unnecessary customer service interaction.

  2. aalness cross-referenced this on May 2, 2014 from issue [Qt] Payment request expiration bug fix by aalness
  3. schildbach commented at 8:04 AM on May 3, 2014: contributor

    I think the last expiration time check should take place immediately before broadcasting the signed tx or exposing it via a payment message, whichever comes first. The reason is transaction creation and signing can take from several seconds up to hours/days (if multiple persons need to sign).

  4. Validate a payment request is still valid prior to payment
    Currently there exists the potential for a user to load a payment request into
    their wallet which is valid at that time but its expiration lapses prior to
    the user authorizing the payment. This could lead to an unnecessary customer
    service interaction.
    18bb72aa27
  5. aalness commented at 1:11 AM on May 6, 2014: contributor

    @schildbach good point. I updated my change to move the check immediately before the broadcast step. Seem reasonable?

  6. gavinandresen commented at 12:17 PM on May 7, 2014: contributor

    This pull request is OK with me.

    I don't really care; the PaymentRequest could be considered expired by the merchant because the the merchant and customers machines disagree about the time, so there will always be annoying edge cases.

  7. aalness commented at 5:03 PM on May 7, 2014: contributor

    Thanks for the review and agreed. I think there will always be edge cases out of the wallet's control but if it can do anything to avoid mis-payment I think it should try.

  8. gavinandresen referenced this in commit 6711d299b3 on May 20, 2014
  9. gavinandresen merged this on May 20, 2014
  10. gavinandresen closed this on May 20, 2014

  11. luke-jr referenced this in commit 6e99d24619 on Jun 6, 2017
  12. real-or-random referenced this in commit 85febc4d49 on Feb 23, 2023

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bips. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-15 00:10 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me