TheBlueMatt / rust-lightning-bitcoinrpc

See https://github.com/lightningdevkit/ldk-sample instead.
35 stars 19 forks source link

Can't connect to peers #12

Closed justinmoon closed 5 years ago

justinmoon commented 5 years ago

I've tried connecting to a couple of the biggest mainnet annd testnet nodes on 1ml, as well as a local testnet node (lnd 0.8.0-beta), and get this error every time

> c 0331f80652fb840239df8dc99205792bba2e559a05469915804c08420230e23c7c@74.108.13.152:9735
Attempting to connect to 74.108.13.152:9735...connected, initiating handshake!
> TRACE [lightning::ln::peer_handler : /home/justin/.cargo/registry/src/github.com-1ecc6299db9ec823/lightning-0.0.9/src/ln/peer_handler.rs, 531] Finished noise handshake for connection with 0331f80652fb840239df8dc99205792bba2e559a05469915804c08420230e23c7c
TRACE [lightning::ln::peer_handler : /home/justin/.cargo/registry/src/github.com-1ecc6299db9ec823/lightning-0.0.9/src/ln/peer_handler.rs, 537] Encoding and sending message of type 16 to 0331f80652fb840239df8dc99205792bba2e559a05469915804c08420230e23c7c
TRACE [lightning::ln::peer_handler : /home/justin/.cargo/registry/src/github.com-1ecc6299db9ec823/lightning-0.0.9/src/ln/peer_handler.rs, 567] Received message of type 16 from 0331f80652fb840239df8dc99205792bba2e559a05469915804c08420230e23c7c
INFO  [lightning::ln::peer_handler : /home/justin/.cargo/registry/src/github.com-1ecc6299db9ec823/lightning-0.0.9/src/ln/peer_handler.rs, 587] Peer local features required data_loss_protect
DEBUG [lightning::ln::channelmanager : /home/justin/.cargo/registry/src/github.com-1ecc6299db9ec823/lightning-0.0.9/src/ln/channelmanager.rs, 2602] Failing all channels with 0331f80652fb840239df8dc99205792bba2e559a05469915804c08420230e23c7c due to no_connection_possible
We disconnected peer!
justinmoon commented 5 years ago

I can get 2 instances of rust-lightning-bitcoinrpc to peer with eachother, however

TheBlueMatt commented 5 years ago

You’ll need #244 to peer with nodes requiring data_loss_protect, though it seems the author has abandoned that work.

On Oct 4, 2019, at 19:51, Justin Moon notifications@github.com wrote:

 I can get 2 instances of rust-lightning-bitcoinrpc to peer

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

justinmoon commented 5 years ago

Cool. I'll just connect 2 rust-lightning-bitcoinrpc nodes to each other for now.

ariard commented 5 years ago

On data_loss_protect, it has been implemented by https://github.com/rust-bitcoin/rust-lightning/pull/349 so you should be able to connect with a lnd instance, already done it successfully.

@TheBlueMatt you can close #244 I think

TheBlueMatt commented 5 years ago

Ah, right, oops, somehow I'd forgotten about that one.