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

feat: accept 0-conf for non RBF swap outputs #118

Merged
merged 1 commit into from
Jun 20, 2019
Merged

Conversation

michael1011
Copy link
Member

This PR prepares the backend for accepting 0-conf swaps. In order to accept 0-conf transactions in a safely manner, one has to verify that the transaction does not signal BIP-125 RBF. I added that logic to the SwapNursery and added an additional condition to accepting 0-conf transactions: the middleware has to explicitly allow 0-conf for that specific swap when creating it. This allows for accepting 0-conf for low amounts but forcing the user to wait for bigger swaps.

@armurbalda
Copy link
Contributor

So afa I understand, the middle ware just sets these thresholds and accepts 0 conf up to this. No frontend/user involvement, correct (this wouldn't be possible since boltz can't know if it's a RBF tx or not beforehand)?

@michael1011 michael1011 force-pushed the zero-conf branch 4 times, most recently from 69e32e0 to 8c28a75 Compare May 18, 2019 10:05
@michael1011 michael1011 marked this pull request as ready for review June 8, 2019 12:33
@michael1011 michael1011 merged commit 66066ee into master Jun 20, 2019
@michael1011 michael1011 deleted the zero-conf branch June 20, 2019 09:47
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

4 participants