9

When I type print_cn into the daemon, I see a lot of OUT and IN entries.

Does OUT mean that I am sending information OUT to that peer, or is that peer sending information to me? Or is it a two-way connection? If I see an IN connection, is that connection connecting to me?

Ginger Ale
  • 5,694
  • 2
  • 19
  • 46

2 Answers2

9

It's a two way connection, the IN refers to connections initiated by the peer, and OUT refers to connections initiated by your node, but communication is duplex.

In that status command, the X+Y part is X OUT connections and Y in connections. You're connected to all of these nodes, the only difference is which side initiated the connection.

user36303
  • 34,928
  • 2
  • 58
  • 123
4

Pretty sure that's how it works. You can also use the command "status" and you'll see at the end of the line a number like "8+1" this shows the number of nodes you are connected to, and after the + shows the number of nodes you are serving.

ferretinjapan
  • 6,494
  • 2
  • 20
  • 47