-
Notifications
You must be signed in to change notification settings - Fork 20.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to let geth always connect with another peer? #16735
Comments
This requires #16333, or for you to add the peer to the trusted peer list via .toml config at launch. |
Hi @ryanschneider ,
I have started my geth node with admin in rpcapi option. And I don't understand what is ".toml" config? |
Sorry I should have been more clear: the PR I referenced hasn’t been merged yet. You can either compile from the PR branch or wait until it’s mergd and the next release is tagged. The .toml config file is pretty under documented, but there’s a (possibly at this point out of date) example config here: https://github.com/zhiyuan2007/sample-ethereum.toml Unless you are pretty comfortable with Geth internals I think your best bet is to wait until a release with the above PR merged, as using the trusted peers option via the toml config is not documented anywhere I could except in the code. |
@wcw84 Add Documentation about |
I have tried "admin.addPeer()" and the "static-nodes.json", they both work |
Geth version: 1.8.1-stable-1e67410e
My geth is always out of date,
WARN [05-14|10:24:55] Synchronisation failed, dropping peer peer=86d38ff0ff7c68b9 err="no peers available or all tried for download" [...] WARN [05-14|10:31:31] Synchronisation failed, dropping peer peer=47bfe5e2ca07d84f err=timeout
and i also have a parity running in the same LAN with my geth node, which is always up to date.
So I tried to let my geth sync with my parity by "admin.addPeer(MY PARITY)" in the geth console, and it works(I could see "Imported new chain segment" in the geth logs immediately).
And the problem is that my parity peer will be removed from the peers list of my geth node(I don't know why?), which would be out of date again until I do "admin.addPeer".
So is there anyway to let my geth ALWAYS connect with my pairty?
Any help will be appreciated.
The text was updated successfully, but these errors were encountered: