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 2825 #28

Merged
merged 1 commit into from
Jan 25, 2024
Merged

add 2825 #28

merged 1 commit into from
Jan 25, 2024

Conversation

jbesraa
Copy link
Contributor

@jbesraa jbesraa commented Jan 23, 2024

No description provided.

Copy link

netlify bot commented Jan 23, 2024

Deploy Preview for courageous-frangipane-fab648 ready!

Name Link
🔨 Latest commit 71823a4
🔍 Latest deploy log https://app.netlify.com/sites/courageous-frangipane-fab648/deploys/65b13790b66fe30008c4f91d
😎 Deploy Preview https://deploy-preview-28--courageous-frangipane-fab648.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

_posts/2024-01-26-#2825.md Outdated Show resolved Hide resolved
_posts/2024-01-26-#2825.md Outdated Show resolved Hide resolved
_posts/2024-01-26-#2825.md Outdated Show resolved Hide resolved
1. Did you review the PR? [Concept ACK, approach ACK, tested ACK, or NACK](https://github.com/lightningdevkit/rust-lightning/blob/master/CONTRIBUTING.md#peer-review)?
2. What are the main scenarios in Lightning we want to utilizie
the `OutputSweepeer` intrdouced in this pull request?
3. Per this pull request, what are the three conditions for
Copy link

Choose a reason for hiding this comment

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

Not sure what three conditions this is exactly referring to? What do you have in mind?

Also, technically you can't 'broadcast an output' just a transaction.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

referring to this https://github.com/lightningdevkit/rust-lightning/pull/2825/files#diff-d3c304325f86fcf7a84425e86192d364907c77356deef4a274b3ef0c936d0bc7R364

  1. when the tx was not broadcasted(last else in the function)
    } else {// Our first broadcast.

  2. if latest_broadcast_height + self.regenerate_spend_threshold >= cur_height {

  3. latest_broadcast_height < cur_height { (rebroadcasting same transaction for each new block if not (2))

Copy link

Choose a reason for hiding this comment

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

Alright, makes sense. Note that it may help to differentiate between 'broadcasting' and 'regenerate and broadcast' here to give a hint.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

@jbesraa jbesraa force-pushed the add-2825 branch 2 times, most recently from 38d227f to 7723f5c Compare January 24, 2024 15:49
date: 2024-01-26
title: "Add OutputSweeper persisting and spending outputs "
pr: 2825
authors: [jbesraa]
Copy link

Choose a reason for hiding this comment

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

I believe this should be set to the PR author?

_posts/2024-01-26-#2825.md Outdated Show resolved Hide resolved
date: 2024-01-26
title: "Add OutputSweeper persisting and spending outputs"
pr: 2825
authors: [tnull]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed up this

@dunxen dunxen merged commit 2d47d29 into lightningdevkit:main Jan 25, 2024
4 checks passed
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