lighthouse/beacon_node
Michael Sproul b90c0c3fb1 Make re-org strat more cautious and add more config (#4151)
## Proposed Changes

This change attempts to prevent failed re-orgs by:

1. Lowering the re-org cutoff from 2s to 1s. This is informed by a failed re-org attempted by @yorickdowne's node. The failed block was requested in the 1.5-2s window due to a Vouch failure, and failed to propagate to the majority of the network before the attestation deadline at 4s.
2. Allow users to adjust their re-org cutoff depending on observed network conditions and their risk profile. The static 2 second cutoff was too rigid.
3. Add a `--proposer-reorg-disallowed-offsets` flag which can be used to prohibit reorgs at certain slots. This is intended to help workaround an issue whereby reorging blocks at slot 1 are currently taking ~1.6s to propagate on gossip rather than ~500ms. This is suspected to be due to a cache miss in current versions of Prysm, which should be fixed in their next release.

## Additional Info

I'm of two minds about removing the `shuffling_stable` check which checks for blocks at slot 0 in the epoch. If we removed it users would be able to configure Lighthouse to try reorging at slot 0, which likely wouldn't work very well due to interactions with the proposer index cache. I think we could leave it for now and revisit it later.
2023-04-13 07:05:01 +00:00
..
beacon_chain Make re-org strat more cautious and add more config (#4151) 2023-04-13 07:05:01 +00:00
builder_client Merge remote-tracking branch 'origin/unstable' into capella 2023-01-12 16:22:00 +11:00
client remove dup log (#4155) 2023-04-03 03:02:58 +00:00
eth1 exchangeCapabilities & Capella Readiness Logging (#3918) 2023-01-31 18:26:23 +01:00
execution_layer Reconstruct Payloads using Payload Bodies Methods (#4028) 2023-03-19 23:15:59 +00:00
genesis Fix the new BLS to execution change test 2023-01-25 15:47:07 +11:00
http_api Make re-org strat more cautious and add more config (#4151) 2023-04-13 07:05:01 +00:00
http_metrics Add content-type header to metrics server response (#3970) 2023-02-28 02:20:50 +00:00
lighthouse_network Add a flag to disable peer scoring (#4135) 2023-04-12 01:48:19 +00:00
network Add a flag to disable peer scoring (#4135) 2023-04-12 01:48:19 +00:00
operation_pool Fix Capella schema downgrades (#4004) 2023-02-20 17:50:42 +11:00
src Make re-org strat more cautious and add more config (#4151) 2023-04-13 07:05:01 +00:00
store Remove Redundant Trait Bound (#4169) 2023-04-12 01:48:22 +00:00
tests Appease Clippy 1.68 and refactor http_api (#4068) 2023-03-13 01:40:03 +00:00
timer Use async code when interacting with EL (#3244) 2022-07-03 05:36:50 +00:00
Cargo.toml Release v4.0.1 (#4125) 2023-03-26 22:39:28 +00:00