-
Notifications
You must be signed in to change notification settings - Fork 912
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
splice: first pass on splice_out command
Added splice_out RPC command and a simple test of it as well. ChangeLog-Added: splice_out command added for doing a splice out more easily.
- Loading branch information
Showing
8 changed files
with
297 additions
and
36 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
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,40 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"required": [ | ||
"channel_id", | ||
"amount" | ||
], | ||
"added": "v23.11", | ||
"properties": { | ||
"channel_id": { | ||
"type": "string", | ||
"description": "the channel id of the channel to take funds from" | ||
}, | ||
"amount": { | ||
"type": "msat", | ||
"description": "a positive amount of satoshis to be taken from the channel" | ||
}, | ||
"initialpsbt": { | ||
"type": "string", | ||
"description": "the (optional) base 64 encoded PSBT to begin with. If not specified, one will be generated automatically" | ||
}, | ||
"feerate_per_kw": { | ||
"type": "u32", | ||
"description": "the miner fee we will pay from our channel funds. It is calculated by `feerate_per_kw` * our_bytes_in_splice_tx / 1000" | ||
}, | ||
"force_feerate": { | ||
"type": "boolean", | ||
"description": "by default splices will fail if the fee provided looks too high. This is to protect against accidentally setting your fee higher than intended. Set `force_feerate` to true to skip this saftey check" | ||
}, | ||
"locktime": { | ||
"type": "u32", | ||
"description": "the locktime to use if initialpsbt is not specified." | ||
}, | ||
"sign_first": { | ||
"type": "bool", | ||
"description": "offer to our peer to sign the splice first." | ||
} | ||
} | ||
} |
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,20 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"required": [ | ||
"tx", | ||
"txid" | ||
], | ||
"added": "v23.11", | ||
"properties": { | ||
"tx": { | ||
"type": "hex", | ||
"description": "The hex representation of the final transaction that is published" | ||
}, | ||
"txid": { | ||
"type": "txid", | ||
"description": "The txid is of the final transaction" | ||
} | ||
} | ||
} |
Oops, something went wrong.