From ea43f7df634608bd00818250a14cb0a77c061420 Mon Sep 17 00:00:00 2001 From: Marius van der Wijden Date: Wed, 20 Jan 2021 16:33:56 +0100 Subject: [PATCH] docs: explain trusted nodes (#22190) --- docs/_interface/peer-to-peer.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/_interface/peer-to-peer.md b/docs/_interface/peer-to-peer.md index 8d47196434..deac4d5b53 100644 --- a/docs/_interface/peer-to-peer.md +++ b/docs/_interface/peer-to-peer.md @@ -152,3 +152,14 @@ You can also add static nodes at runtime via the js console using ```js admin.addPeer("enode://f4642fa65af50cfdea8fa7414a5def7bb7991478b768e296f5e4a54e8b995de102e0ceae2e826f293c481b5325f89be6d207b003382e18a8ecba66fbaf6416c0@33.4.2.1:30303") ``` + +## Trusted nodes + +Geth supports trusted nodes that are always allowed to reconnect, even if the peer limit is reached. +They can be added permanently via a config file `/geth/trusted-nodes.json` or temporary via RPC call. +The format for the config file is identical to the one used for static nodes. +Nodes can be added using the `admin.addTrustedPeer()` RPC-call over the js console and removed using the `admin.removeTrustedPeer()` call. + +```js +admin.addTrustedPeer("enode://f4642fa65af50cfdea8fa7414a5def7bb7991478b768e296f5e4a54e8b995de102e0ceae2e826f293c481b5325f89be6d207b003382e18a8ecba66fbaf6416c0@33.4.2.1:30303") +``` \ No newline at end of file