Difference between revisions of "Push Channel Opens"
Jump to navigation
Jump to search
(username removed) (Created page with ""Ghetto Submarine Swaps" can be reduced to a two-step process as long as your client has the ability to specify a local amount and a push amount. == push channel opens with l...") |
(Marked this version for translation) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<languages/> | |||
<translate> | |||
<!--T:1--> | |||
"Ghetto Submarine Swaps" can be reduced to a two-step process as long as your client has the ability to specify a local amount and a push amount. | "Ghetto Submarine Swaps" can be reduced to a two-step process as long as your client has the ability to specify a local amount and a push amount. | ||
== push channel opens with lncli == <!--T:2--> | |||
<!--T:3--> | |||
lncli has this ability built-in. For example, to open a balanced 5M channel: | lncli has this ability built-in. For example, to open a balanced 5M channel: | ||
<!--T:4--> | |||
<code>lncli openchannel --node_key <node_key> --local_amt 5000000 --push_amt 2500000 --sat_per_vbyte 1</code> | <code>lncli openchannel --node_key <node_key> --local_amt 5000000 --push_amt 2500000 --sat_per_vbyte 1</code> | ||
<!--T:5--> | |||
Do note that 'local amount' is 5M, because it represents the channel's total girth, however since we *push* half, the channel is balanced. This effectively reduces a ghetto submarine swap to two steps: | Do note that 'local amount' is 5M, because it represents the channel's total girth, however since we *push* half, the channel is balanced. This effectively reduces a ghetto submarine swap to two steps: | ||
<!--T:6--> | |||
* node 1: open channel with N local and N/2 push | * node 1: open channel with N local and N/2 push | ||
* node 2: send N/2 to node 1, on-chain | * node 2: send N/2 to node 1, on-chain | ||
[[File: | <!--T:7--> | ||
[[File: Push_open.png|500px]] | |||
</translate> |
Latest revision as of 19:50, 2 October 2021
"Ghetto Submarine Swaps" can be reduced to a two-step process as long as your client has the ability to specify a local amount and a push amount.
push channel opens with lncli
lncli has this ability built-in. For example, to open a balanced 5M channel:
lncli openchannel --node_key <node_key> --local_amt 5000000 --push_amt 2500000 --sat_per_vbyte 1
Do note that 'local amount' is 5M, because it represents the channel's total girth, however since we *push* half, the channel is balanced. This effectively reduces a ghetto submarine swap to two steps:
- node 1: open channel with N local and N/2 push
- node 2: send N/2 to node 1, on-chain