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

Dual-funding over multifundchannel fixups, etc #4211

Merged
merged 6 commits into from
Dec 2, 2020

Conversation

niftynei
Copy link
Collaborator

Starts at 60c8901. Includes commits that are in #4210.

This PR does a few things

  • We rename the dual_open wires to dualopend, as this conforms to the other daemon naming scheme.
  • We remove some unnecessary test code, since multifundchannel now handles it
  • We set the minimum weight on an input to 110, iif we're finding the fee/funding for a opening tx that will have some opt_dual_fund participants.

@niftynei niftynei added this to the v0.9.3 milestone Nov 18, 2020
@niftynei niftynei force-pushed the nifty/df-mfc-fixes branch 2 times, most recently from 6842565 to c76b6d2 Compare November 18, 2020 17:55
Since fundchannel/multifundchannel now handles v2 opens, we use that
instead of this hacked together plugin.
We have a required minimum witness weight for dual funded opens.
Needed for v2 of channel opens, where the minimum weight is 110; a
'simple utxo' (sig + key) weighs in at 107, so we a need a way to
establish a floor for this case.

Changelog-Added: JSON-RPC: fundpsbt/utxopsbt have new param, `min_witness_utxo`, which sets a floor for the weight calculation of an added input
We'll use it for figuring out whether or not to set a utxo witness
minimum, which comes much before we were setting this field.

Now we set the protocol as soon as we can reasonably deduce it.
We only need a bumped up input weight if we're talking to nodes that
require v2.
Copy link
Contributor

@rustyrussell rustyrussell left a comment

Choose a reason for hiding this comment

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

Ack 5b8ea32

@rustyrussell rustyrussell merged commit 4185a86 into ElementsProject:master Dec 2, 2020
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.

2 participants