What is the difference between the bitcoind command line options "addnode" and "connect"?

7

1

As seen here: https://en.bitcoin.it/wiki/Running_Bitcoin#Command-line_arguments

-addnode=ip Add a node to connect to and attempt to keep the connection open
-connect=ip Connect only to the specified node(s)

Both of those explanations seem to say the same thing to me.

Can anyone explain them in more detail?

user3145

Posted 2013-05-10T05:21:03.567

Reputation: 777

Answers

10

"addnode" add a node to the list of nodes to connect.

"connect" only connect to THIS node.

For example, you are connected to nodes : 'A B C'

addnode=D and you'll be connected to : 'A B C D'

connect=D and you'll be connected to : 'D'

Nontenda

Posted 2013-05-10T05:21:03.567

Reputation: 469