9

In the docs, static nodes are described as

Geth supports a feature called static nodes if you have certain peers you always want to connect to. Static nodes are re-connected on disconnects.

There is a <datadir>/static-nodes.json and a trusted-nodes.json too.

I can't find anywhere that explains the difference though.

6

Won't add much than what you said apart from the reconnection feature !

According to this and this as you said :

p2p.Server should be able to use a JSON file containing trusted node addresses. It should try to keep those nodes connected at all times. The connections should not count toward the maximum number of connections.

and

Trusted nodes are privileged: they get connected/accepted even above the maximum peer count Connections to trusted nodes are reattempted every once in a while (15 sec for now)

In geth code you can see the comment:

// Trusted nodes are used as pre-configured connections which are always
// allowed to connect, even above the peer limit.
4

Apparently, trusted nodes are nodes can be added even max peers reached but the node won't constantly try to connect to them like they will with static nodes.

This is the only answer I've come across so far. If anyone has any further detail, that would be awesome.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.