Skip to content

msggen: add low level fundchannel methods#7231

Merged
cdecker merged 1 commit into
ElementsProject:masterfrom
daywalker90:fundchannel_low_level
Apr 23, 2024
Merged

msggen: add low level fundchannel methods#7231
cdecker merged 1 commit into
ElementsProject:masterfrom
daywalker90:fundchannel_low_level

Conversation

@daywalker90
Copy link
Copy Markdown
Collaborator

Based on: #7215 + #7217 + #7218 and the fix from #7230

This PR adds the following low level fundchannel methods in msggen:

  • fundchannel_cancel
  • fundchannel_complete
  • fundchannel_start

@daywalker90 daywalker90 requested a review from cdecker as a code owner April 16, 2024 17:58
@daywalker90
Copy link
Copy Markdown
Collaborator Author

Notice that i changed the amount in the json schema to msat

Copy link
Copy Markdown
Member

@cdecker cdecker left a comment

Choose a reason for hiding this comment

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

Just a small issue with the change in denomination in the schema (it's sat whenever on-chain is involved, and msat otherwise).

},
"amount": {
"type": "sat",
"type": "msat",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This change is wrong:

amount is the satoshi value that we will contribute to the channel.
This value will be added to the provided PSBT in the output which is
encumbered by the 2-of-2 script for this channel.

@daywalker90 daywalker90 force-pushed the fundchannel_low_level branch from 91807e6 to 9bdc515 Compare April 19, 2024 14:31
@daywalker90
Copy link
Copy Markdown
Collaborator Author

rebased on #7238

@cdecker cdecker force-pushed the fundchannel_low_level branch from 9bdc515 to 342e0b2 Compare April 22, 2024 10:21
@cdecker
Copy link
Copy Markdown
Member

cdecker commented Apr 22, 2024

This was a clean rebase, I'll merge asap.

@cdecker cdecker dismissed their stale review April 22, 2024 10:21

The sat vs msat discussion predates this PR.

@cdecker cdecker force-pushed the fundchannel_low_level branch from 342e0b2 to 2a8a5f4 Compare April 23, 2024 15:47
@cdecker
Copy link
Copy Markdown
Member

cdecker commented Apr 23, 2024

Rebased on top of master

@cdecker cdecker force-pushed the fundchannel_low_level branch from 2a8a5f4 to c711dc0 Compare April 23, 2024 15:48
@cdecker cdecker enabled auto-merge (rebase) April 23, 2024 15:49
@cdecker cdecker merged commit 448f4c0 into ElementsProject:master Apr 23, 2024
@daywalker90 daywalker90 deleted the fundchannel_low_level branch April 24, 2024 10: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.

2 participants