Bitcoin Forum
May 26, 2024, 10:59:01 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: cryptographic handshake: peer closed connection (wrong key?).  (Read 95 times)
Geremia (OP)
Sr. Member
****
Offline Offline

Activity: 505
Merit: 251


View Profile WWW
December 16, 2021, 08:02:17 PM
 #1

I'm trying to connect to my local Electrum lightning node using c-lightning, but why do I get this error:
Code:
All addresses failed: 127.0.0.1:9735: cryptographic handshake: peer closed connection (wrong key?). 
?

BTC tip jar | my BTC wiki, BTC StackExchange | Tox ID: 65C3E8810738AD9D175234808FCB317A1103632903436203D45411AE97C03F54C34861AB6663
Join Kraken. | The best, free book on Bitcoin: Mastering Bitcoin
Nos cum prole pia benedicat Virgo Maria.
jackg
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
December 16, 2021, 08:23:36 PM
 #2

Have you tested if clightning can connect to other nodes and open channels? Have you made an address in clightning?

Does the node appear via your peer discovery in electrum or did you input it manually? (im assuming you're trying to open a channel from electrum to the clightning client also as I'm not sure if it's as easy to do one the other way).

nc50lc
Legendary
*
Offline Offline

Activity: 2422
Merit: 5640


Self-proclaimed Genius


View Profile
December 17, 2021, 02:57:36 AM
 #3

Is "Use trampoline routing (disable gossip)" setting in Electrum enabled?
It can be found in "Tools->Preferences->'Lightning' tab" of the GUI or the "use_gossip": true, line of the config file.

If that's enabled, you wont be able to connect to any lightning nodes other than the (currently) 3 hardcoded Electrum trampoline nodes.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Geremia (OP)
Sr. Member
****
Offline Offline

Activity: 505
Merit: 251


View Profile WWW
December 17, 2021, 04:14:27 AM
 #4

It seems I'm having an address issue.

Is there a way to determine what Electrum's onion address is so I can pass that to c-lightning in <pubkey>:<address>:<port> format?

BTC tip jar | my BTC wiki, BTC StackExchange | Tox ID: 65C3E8810738AD9D175234808FCB317A1103632903436203D45411AE97C03F54C34861AB6663
Join Kraken. | The best, free book on Bitcoin: Mastering Bitcoin
Nos cum prole pia benedicat Virgo Maria.
Rath_
aka BitCryptex
Legendary
*
Offline Offline

Activity: 1876
Merit: 3132



View Profile
December 17, 2021, 11:10:38 PM
 #5

Is there a way to determine what Electrum's onion address is so I can pass that to c-lightning in <pubkey>:<address>:<port> format?

You could try connecting to your c-lightning node from Electrum. Open the console and type in:

Code:
add_peer("id@ip_address of your c-lightning node")

Code:
nodeid()

Copy the output and use it in the lightning-cli openchannel command.
Pmalek
Legendary
*
Offline Offline

Activity: 2772
Merit: 7160



View Profile
December 19, 2021, 08:24:43 AM
 #6

The "cryptographic handshake" error appears in a few GitHub issues. Here is one such example where the --bind-addr flag command was missing in the container. The user there had a problem to connect two of his nodes (one to the other). Check it out, maybe it can help > https://github.com/ElementsProject/lightning/issues/2337.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!