1

Is it possible to run two nodes with the same public key on the Lightning network? The reason is reliability -- two different servers run different instances of node software with the same setup (incl keys) -- if one fails -- the other one continue serving. Possible?

thank you.

1

With reliability, I assume you mean protecting channel balances against server failure (Not being able to close the channel correctly following an error).

You can reproduce the wallet in both nodes, but that doesn't contribute to securing a payment channel's balance in the case of a failure. It simply just means both node instances have identical wallet keys.

In other words, the two node instances may be signing with the same wallet keys, but they cannot be operating as a single peer for a given channel.

Since it is the individual payment channel balance (unbroadcasted, signed commitment transactions) which is at risk, it would be necessary to secure the commitment transaction data of a single node instance to protect your balance in case of a server failure.

0

No, because channels are very stateful, and each node MUST have the up-to-date state to be able to sign and revoke commitments. Any node which has out-of-date state will potentially cause loss of all funds in channels.

If you do need to migrate your node due to server downtime, you should ensure that you have replicated the most recent state onto your new server before attempting to reconnect to the network. Even if you have an automated replication strategy in place, if a server goes down, you can not be sure whether the most recent state was replicated to your new server until you can recover the state of the node which went down.

Clients will only keep a record of the most up-to-date gossip messages from a given node id, so broadcasting a new IP address will replace the old view of the IP address for other participants. Each client will probably use the node's public key as the primary key for indexing the node in its database.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.