Ethereum: How to convert channel id from c-lightning to lnd?

I would be sent to help you with L-Lighting to LD. There is step by step here to do this:

under the channel identifiers

In CLIGHT and LND IDS bottles, they are used for identification and vegetable veins. The ID form is usually in the format:

`S

Channel ID (height, block number, gaps, transaction shortcut)

S

For the exam, the drug can be 5055580x1917x1.

Contenting C-Lighting to Lnd *

To convey C-Lightning Canel ID to the LND-Compait format, you will have to follow the following steps:

Ethereum: How to convert channel id from c-lightning to lnd?

Step 1: Parte The C-Lightning Channel ID

First, evaporate CANN ID CAND:

S

Height (x): 505580

The block numb (X): 1917

Number (x): 1

Hash transactions (X):

S

Note in LND we will focus on height "," block neur "and the fields of crevices.

Step 2: Convert to the Format compatible with LND

To determine the analyzed values ​​for the LND computer format, use the Folling form:

sql

charm_id = (height 60) + (block_number 10^15) + nest

S

Is a refraction of the formula:

*60) "calculates the total number of units in the channel by multiplying the height field by 60.

  • 10^15) With the transformation of the block into a LND compact format, each block only 10^15 units. This led by moving the numb block to Lket (i.e. dividing it by 10,000,000,000) and multiplying by 10^15.

Step 3: Calculate channel ID

Now, analyzed values ​​and conversion of the formula, we would calculate the Chanel ID in accordance with LND:

sql

Charm_id = (505580 60) + (1917 10^15) + zot

S

Culture the field chain.

Step 4: Add exceptional

To create the ID Channel ID program, add one non -vulnerable to Analyl. There is bread with you, and Chanene, which I suffered:

S

Jackel_id = "LD ID channel: "

S

For example, the ID ID ID is505500x191917x1 ‘, we must customize X to get 50501917x1917x 1’.

Example use

I suppose you are the C-Lightning channel, observer:

`S

Height (x): 506000

Block number (X): 1928

Number (x): 2

Hash of transactions (X):

S

By using abover, we will be calculated LND-Compaino Chanel Id:

sql

Charm_id = (506000 60) + (1928 10^15) + 2

` S

Wold results are 13168000 ‘for the exam channel.

By swimming steps, you are now staying alone with LND-Compaino Cant ID for your L-Lighting channels.

ETHEREUM BITCOINS EMAIL ADDRESS


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *