I'm running a full node with LES protocol enabled which I want my light clients to connect to and sync from.

I tried to do this by starting the light client with geth --light --bootnodes <my_enode>. Doesn't connect. With --verbosity 4 set, it gives me
DEBUG[08-23|16:05:24] Bad packet from <my_ip>:<my_port>: rlp: too few elements for discv5.pong

I also tried with geth --light --bootnodesv4 <my_enode>. Still doesn't connect. In this case there's no debug entry.

When attaching to the light client node and issuing `admin.addPeer(), it successfully connects.

Am I misunderstanding what the --bootnodes param is for?
If not this way, how can I tell geth to connect to my full node on startup?

I just noticed that adding manually with admin.addPeer doesn't always work, probably because the full node has already maxPeers connected. Is it possible to configure the full node such that a given list of nodes is always allowed to connect (e.g. via reserved slots or higher priority)?

Your Answer

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

Browse other questions tagged or ask your own question.