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

Add timeout paameter to waitanyinvoice. #3449

Merged
merged 2 commits into from
Jan 28, 2020

Conversation

ZmnSCPxj
Copy link
Collaborator

An alternative to #3438. Closes #3438

This provides more flexibility, but I do not know if the flexibility added is actually useful.

Fixes: ElementsProject#3192

Changelog-Added: `waitanyinvoice` now supports a `timeout` parameter, which when set will cause the command to fail when the timeout is reached; can set this to 0 to fail immediately if no new invoice has been paid yet.
Copy link
Collaborator

@darosior darosior left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK c37b8c9

/*~ We allocate the timeout and the wallet-waitanyinvoice
* in the cmd context, so whichever one manages to complete
* the command first (and destroy the cmd context)
* auto-cancels the other, is not tal amazing?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it is 💯

@cdecker
Copy link
Member

cdecker commented Jan 28, 2020

ACK c37b8c9

@cdecker cdecker merged commit ccb8950 into ElementsProject:master Jan 28, 2020
@ZmnSCPxj ZmnSCPxj deleted the waitanyinvoice-timeout branch January 29, 2020 02:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants