Difference between revisions of "Push Channel Opens"

From PlebNet Wiki
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...")
 
m
Line 12: Line 12:
* node 2: send N/2 to node 1, on-chain
* node 2: send N/2 to node 1, on-chain


[[File: push_open.png|500px]]
[[File: Push_open.png|500px]]

Revision as of 02:29, 15 July 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

Push open.png