Stage 1 - Finish up the P2P network by connecting Bob to Charlie
Closed this issue · 1 comments
magomimmo commented
Everything works until I submit the command to create the connection between Charlie and Bob:
charlie$ lncli-charlie connect <BOB_PUBKEY>@localhost:10012
[lncli] rpc error: code = OutOfRange desc = EOF
But if I reverse the connection as:
bob$ lncli-bob connect <CHARLIE_PUBKEY@localhost:10013
the connection can be establish and I can even request Bob's and Charlie's listpeers:
bob$ lncli-bob listpeers
{
"peers": [
{
"pub_key": "02015fed2386ff28ad68499490a6fcec2b7550441a3e5ecf3008da23019c21b722",
"peer_id": 1,
"address": "127.0.0.1:57734",
"bytes_sent": "539",
"bytes_recv": "539",
"sat_sent": "0",
"sat_recv": "0",
"inbound": false,
"ping_time": "218"
},
{
"pub_key": "030099902bed3d20b94650fba598e82baaa27344f65c889b3098a7e046b4adab5b",
"peer_id": 2,
"address": "127.0.0.1:10013",
"bytes_sent": "201",
"bytes_recv": "201",
"sat_sent": "0",
"sat_recv": "0",
"inbound": true,
"ping_time": "318"
}
]
}
and
charlie$ lncli-charlie listpeers
{
"peers": [
{
"pub_key": "037a644510a712e0eb82992989f2979cb6020aa55dac2129d7b52900eabd53cdfa",
"peer_id": 1,
"address": "127.0.0.1:57828",
"bytes_sent": "253",
"bytes_recv": "253",
"sat_sent": "0",
"sat_recv": "0",
"inbound": false,
"ping_time": "226"
}
]
}
magomimmo commented
I did all the steps again and the connection between Charlie and Bob worked.