forked from ElementsProject/lightning
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fundchannel_start / openchannel_init: add a channel_type parameter to…
… force channel type. And add request schemas for openchannel_init and fundchannel_start. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Changelog-Added: JSON-RPC: `fundchannel_start` and `openchannel_init` now take an optional `channel_type` parameter.
- Loading branch information
1 parent
a943a53
commit e749aeb
Showing
13 changed files
with
260 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"required": [ | ||
"id", | ||
"amount" | ||
], | ||
"properties": { | ||
"id": { | ||
"type": "pubkey" | ||
}, | ||
"amount": { | ||
"type": "msat" | ||
}, | ||
"feerate": { | ||
"type": "feerate" | ||
}, | ||
"announce": { | ||
"type": "boolean" | ||
}, | ||
"close_to": { | ||
"type": "hex" | ||
}, | ||
"push_msat": { | ||
"type": "msat" | ||
}, | ||
"mindepth": { | ||
"type": "u32" | ||
}, | ||
"reserve": { | ||
"type": "msat" | ||
}, | ||
"channel_type": { | ||
"type": "array", | ||
"description": "Each bit set in this channel_type", | ||
"items": { | ||
"type": "u32", | ||
"description": "Bit number" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"required": [ | ||
"id", | ||
"amount", | ||
"initialpsbt" | ||
], | ||
"properties": { | ||
"id": { | ||
"type": "pubkey" | ||
}, | ||
"amount": { | ||
"type": "msat" | ||
}, | ||
"initialpsbt": { | ||
"type": "string" | ||
}, | ||
"commitment_feerate": { | ||
"type": "feerate" | ||
}, | ||
"funding_feerate": { | ||
"type": "feerate" | ||
}, | ||
"announce": { | ||
"type": "boolean" | ||
}, | ||
"close_to": { | ||
"type": "hex" | ||
}, | ||
"request_amt": { | ||
"type": "msat" | ||
}, | ||
"compact_lease": { | ||
"type": "hex" | ||
}, | ||
"channel_type": { | ||
"type": "array", | ||
"description": "Each bit set in this channel_type", | ||
"items": { | ||
"type": "u32", | ||
"description": "Bit number" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.