Difference between revisions of "Push Channel Opens"

From PlebNet Wiki
Jump to navigation Jump to search
m
(Prepared the page for translation)
Line 1: Line 1:
<languages/>
<translate>
"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 ==
== push channel opens with lncli ==
Line 13: Line 16:


[[File: Push_open.png|500px]]
[[File: Push_open.png|500px]]
</translate>

Revision as of 19:41, 2 October 2021

Other languages:
English

"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

Push open.png