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

Broadcast transaction packages #3859

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

joostjager
Copy link
Contributor

@joostjager joostjager commented Jun 14, 2023

This PR demonstrates a possible implementation of package broadcasting. It facilitates the addition of transactions to the mempool even when their fee rate is below the minimum, as long as the total package fee rate suffices. An example of this could be a 1 sat/b lightning commitment transaction, which is time-sensitive (the parent tx), along with a high fee rate child transaction that covers the cost for the parent tx too.

According to the FAQ, mempool.space utilizes a virtually limitless mempool. In this scenario, transactions would still be accepted even if they were broadcasted individually. However, versions hosted in other locations might operate with more confined mempools. For these versions, package broadcasting might be the only technique to push a package similar to the one described above into their mempool.

To utilize this on the mainnet, it necessitates the application of this patch: bitcoin/bitcoin#27609. The discussions around the PR suggest its usage is safe.

broadcast-package.mov

@cla-bot
Copy link

cla-bot bot commented Jun 14, 2023

Thanks for your contribution to The Mempool Open Source Project. We require all contributors to agree to our Contributor License Agreement and don't seem to have one for you on file. Please see the instructions in CONTRIBUTING.md to proceed with this pull request.

@softsimon
Copy link
Member

Looks cool!

@softsimon
Copy link
Member

Wait. So this is not supported by the latest official Bitcoin Core 25.0?

@joostjager
Copy link
Contributor Author

That's correct. The feature unfortunately didn't make the release. As long as submitpackage is only useable on regtest, I guess this PR only serves as an illustration on how the api can be made use of.

@softsimon softsimon closed this Nov 14, 2023
@softsimon softsimon reopened this Nov 14, 2023
@emilcondrea
Copy link

Can this be used on mainnet now?

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