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.


2 Answers 2


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.


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.

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 and acknowledge you have read our privacy policy.

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