Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stage 1 - Finish up the P2P network by connecting Bob to Charlie #12

Closed
magomimmo opened this issue Dec 25, 2017 · 1 comment
Closed

Comments

@magomimmo
Copy link
Contributor

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
Copy link
Contributor Author

I did all the steps again and the connection between Charlie and Bob worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant