-
Notifications
You must be signed in to change notification settings - Fork 179
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 "manual" tx_broadcast method #414
Conversation
I've reviewed the code and it looks fine to me. How long might a coinjoin transaction be un-broadcast using this command? |
Depends on a user. Workflow is to call |
There is minor issue with qt, I will look at it. Just a message in output, otherwise it works. Tx does not appear in tx history also, but that's likely solved with #359.
|
I think I will not change anything here currently. Error happens because |
|
Having read through this, my comments: In general, a manual option is useful, just it doesn't sit well with multi-join. So for me utACK because it doesn't harm anything to add this option. You do need to rebase though (this one should be easy). |
Rebased |
Testing report: for command line sendpayment things work as expected, although it may not be obvious for users, along the lines of what I was saying above about callbacks: For Qt, something more important happened: I'd be tempted to suggest you change it to tell users not to use this option in Qt, rather than try to support it; but either way is fine with me; if you do want Qt support you'll have to look at the dialog box size issue. Istr i dealt with that already, for the commitments failure case, so I'd take a look at that dialog box, it's different somehow (I don't remember). |
Just to follow up on that last point, since I was curious: |
IIRC, I didn't have such problem when copy-pasted tx data from that dialog, could be related to the different Linux GUI's in our systems. I think it will be good enough to just not allow |
That's fine with me, just make sure users don't use it on GUI. Tbh the more I look at this the less I like it, whenever we add options like this it makes it a little more complex to handle updates, and this one in particular doesn't fit well with most usage modes (multi-join definitely, single join it works but it behaves a little awkwardly). I think it's fine to merge it just for single join command line, though, if you have a strong enough need for it. |
The end goal for me would be to have some script you could copy to JM scripts folder and use that for opening Lightning channels with JM CJ. It will most likely don't need this, this was just a way how to do it manually right now. Proper script would need some hook before tx broadcast, with ability to cancel broadcast, without caring much what is actual tx broadcast method afterwards. But haven't looked much into details yet. Another thing - this was just a fun thing I wanted to do, but you don't gain much privacy currently as LN channel opening TX output is P2WPSH, not P2SH, so is distinguishable. And you can in most cases easy find out also inputs and change output of the taker, because of the cj fees. So, let's not merge this in at least for now. |
I'm closing this.
|
|
Ensures that no attempts to broadcast transaction will be made by JoinMarket. This is needed for Lightning channel opening with c-lightning and it's
fundchannel_start
andfundchannel_complete
commands.I plan to write scripts to automate channel opening/closing in the future, but this already allows to do it manually.