Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stream payment: Prevent making a request with a past deadline #598

Merged
merged 4 commits into from
Jun 24, 2024

Conversation

nanocryk
Copy link
Contributor

@nanocryk nanocryk commented Jun 18, 2024

Prevents making a request with a mandatory change having a deadline in the past.
Also fix the stream_payment_status function to return stalled = true when deadline is reached.

@nanocryk nanocryk added a0-pleasereview Pull request needs code review. B7-runtimenoteworthy Changes should be noted in any runtime-upgrade release notes D9-needsaudit👮 PR contains changes to fund-managing logic that should be properly reviewed and externally audited labels Jun 18, 2024
Copy link
Contributor

github-actions bot commented Jun 18, 2024

Coverage Report

(master)

@@                            Coverage Diff                            @@
##           master   jeremy-steam-payment-no-past-deadline      +/-   ##
=========================================================================
+ Coverage   69.60%                                  69.61%   +0.01%     
  Files         226                                     226              
+ Lines       40210                                   40221      +11     
=========================================================================
+ Hits        27988                                   27996       +8     
+ Misses      12222                                   12225       +3     
Files Changed Coverage
/pallets/stream-payment/src/lib.rs 91.01% (-0.44%) 🔽

Coverage generated Mon Jun 24 06:42:31 UTC 2024

@girazoki
Copy link
Collaborator

Thank you @nanocryk , let's fix dev tests and merge

@girazoki girazoki added the breaking Needs to be mentioned in breaking changes label Jun 19, 2024
@nanocryk nanocryk merged commit 77296a6 into master Jun 24, 2024
34 checks passed
@nanocryk nanocryk deleted the jeremy-steam-payment-no-past-deadline branch June 24, 2024 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a0-pleasereview Pull request needs code review. B7-runtimenoteworthy Changes should be noted in any runtime-upgrade release notes breaking Needs to be mentioned in breaking changes D9-needsaudit👮 PR contains changes to fund-managing logic that should be properly reviewed and externally audited
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants