Skip to content

Commit 9f8b0f2

Browse files
chong-heisaac.asimov
authored andcommitted
Update Lighthouse book on Doppelganger Protection (sigp#4418)
Revise the page by removing the info on sync committee delay. Also added an faq on changing the port.
1 parent c102a8d commit 9f8b0f2

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

book/src/faq.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,11 @@
2525
## [Network, Monitoring and Maintenance](#network-monitoring-and-maintenance-1)
2626
- [I have a low peer count and it is not increasing](#net-peer)
2727
- [How do I update lighthouse?](#net-update)
28-
- [Do I need to set up any port mappings (port forwarding)?](#net-port)
28+
- [Do I need to set up any port mappings (port forwarding)?](#net-port-forwarding)
2929
- [How can I monitor my validators?](#net-monitor)
3030
- [My beacon node and validator client are on different servers. How can I point the validator client to the beacon node?](#net-bn-vc)
3131
- [Should I do anything to the beacon node or validator client settings if I have a relocation of the node / change of IP address?](#net-ip)
32+
- [How to change the TCP/UDP port 9000 that Lighthouse listens on?](#net-port)
3233

3334

3435
## [Miscellaneous](#miscellaneous-1)
@@ -360,7 +361,7 @@ $ docker pull sigp/lighthouse:v1.0.0
360361
If you are building a docker image, the process will be similar to the one described [here.](./docker.md#building-the-docker-image)
361362
You just need to make sure the code you have checked out is up to date.
362363

363-
### <a name="net-port"></a> Do I need to set up any port mappings (port forwarding)?
364+
### <a name="net-port-forwarding"></a> Do I need to set up any port mappings (port forwarding)?
364365

365366
It is not strictly required to open any ports for Lighthouse to connect and
366367
participate in the network. Lighthouse should work out-of-the-box. However, if
@@ -386,7 +387,7 @@ For these reasons, we recommend that you make your node publicly accessible.
386387

387388
Lighthouse supports UPnP. If you are behind a NAT with a router that supports
388389
UPnP, you can simply ensure UPnP is enabled (Lighthouse will inform you in its
389-
initial logs if a route has been established). You can also manually [set up port mappings/port forwarding](./advanced_networking.md/#how-to-open-ports) in your router to your local Lighthouse instance. By default,
390+
initial logs if a route has been established). You can also manually [set up port mappings/port forwarding](./advanced_networking.md#how-to-open-ports) in your router to your local Lighthouse instance. By default,
390391
Lighthouse uses port 9000 for both TCP and UDP. Opening both these ports will
391392
make your Lighthouse node maximally contactable.
392393

@@ -421,6 +422,9 @@ The settings are as follows:
421422
### <a name="net-ip"></a> Should I do anything to the beacon node or validator client settings if I have a relocation of the node / change of IP address?
422423
No. Lighthouse will auto-detect the change and update your Ethereum Node Record (ENR). You just need to make sure you are not manually setting the ENR with `--enr-address` (which, for common use cases, this flag is not used).
423424

425+
### <a name="net-port"></a> How to change the TCP/UDP port 9000 that Lighthouse listens on?
426+
Use the flag ```--port <PORT>``` in the beacon node. This flag can be useful when you are running two beacon nodes at the same time. You can leave one beacon node as the default port 9000, and configure the second beacon node to listen on, e.g., ```--port 9001```.
427+
424428
## Miscellaneous
425429

426430
### <a name="misc-slashing"></a> What should I do if I lose my slashing protection database?

book/src/validator-doppelganger.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,12 @@ DP works by staying silent on the network for 2-3 epochs before starting to sign
4343
Staying silent and refusing to sign messages will cause the following:
4444

4545
- 2-3 missed attestations, incurring penalties and missed rewards.
46-
- 2-3 epochs of missed sync committee contributions (if the validator is in a sync committee, which is unlikely), incurring penalties and missed rewards.
4746
- Potentially missed rewards by missing a block proposal (if the validator is an elected block
4847
proposer, which is unlikely).
4948

5049
The loss of rewards and penalties incurred due to the missed duties will be very small in
51-
dollar-values. Generally, they will equate to around one US dollar (at August 2021 figures) or about
52-
2% of the reward for one validator for one day. Since DP costs so little but can protect a user from
50+
dollar-values. Neglecting block proposals, generally they will equate to around 0.00002 ETH (equivalent to USD 0.04 assuming ETH is trading at USD 2000), or less than
51+
1% of the reward for one validator for one day. Since DP costs so little but can protect a user from
5352
slashing, many users will consider this a worthwhile trade-off.
5453

5554
The 2-3 epochs of missed duties will be incurred whenever the VC is started (e.g., after an update

0 commit comments

Comments
 (0)