-
Notifications
You must be signed in to change notification settings - Fork 933
[Merged by Bors] - Doppelganger detection #2230
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
Closed
Closed
Changes from all commits
Commits
Show all changes
204 commits
Select commit
Hold shift + click to select a range
c457ed3
add doppelganger endpoint
realbigsean 2e2a699
add doppelganger detection methods and fix endpoint
realbigsean 80f83ec
add validator client logic and API test
realbigsean 61b4472
add simulator test and add log
realbigsean f27ee39
add log
realbigsean 478f245
fix typo and comparator bug
realbigsean 502052a
move log
realbigsean e3958e2
delete log
realbigsean 050f439
fix doppelganger detection loop
realbigsean 5cb18b0
add breaks
realbigsean 51e4286
Use the database to persist the pubkey cache
michaelsproul dd24c8f
pr updates
realbigsean dfcec9c
pr updates
realbigsean 752a3cf
Add first pass at using pre-state for block prod
paulhauner ed61c44
Add warnings for late block broadcasts
paulhauner 27efac4
Move warnings for late blocks
paulhauner 22ab61b
Add comments
paulhauner c35a6c4
Use crit for late blocks
paulhauner d274b32
Tidy docs, add sanity check
paulhauner 53b4457
Add more metrics for duties
paulhauner 54940bd
Refactor proposer duties endpoint
paulhauner 23ca805
Fix bug in state advance timer
paulhauner fe57bfb
Remove old beacon proposer cache
paulhauner 906d72b
First refactor of attester duties
paulhauner b3954a5
Merge branch 'pr/2234' into faster-duties
paulhauner 57723c8
Add pubkey bytes struct
paulhauner 484cf45
Almost complete duties refactor
paulhauner 8984b90
Add almost-compiling refactor
paulhauner cedea75
Remove old duties service code
paulhauner cd7edcd
Merge branch 'unstable' into faster-duties
paulhauner c32e5ca
Fix compile errors
paulhauner 1653482
Remove old validator_duty struct
paulhauner c552d87
Fix attestation, indices bugs
paulhauner 0449301
Fix clippy lints, add metrics
paulhauner 60e1a7d
Specify integer types
paulhauner db023dc
Revert "Specify integer types"
paulhauner 16ae38c
Only subscribe for later slots
paulhauner c1c8326
Specify integers as slots
paulhauner 733257e
Use saturating math
paulhauner d456fc0
Subscribe even later
paulhauner b1ca126
make doppelganger detection default behavior, move it to a service, t…
realbigsean 8b7aa54
Merge branch 'faster-duties' of https://github.com/sigp/lighthouse in…
realbigsean 9e9307f
Fix slashing test compile errors
paulhauner bc1ffd9
clean up
realbigsean 80e5dba
clippy fixes
realbigsean 34a91e7
Fix slashing db compile error
paulhauner 66c7038
Add comments, fancy block retry logic
paulhauner 94f7df5
Fix test compile error
paulhauner e8e2f14
Tidy
paulhauner a78078b
Break proposer duties into own file, refactor
paulhauner 9a11075
update error handling and filtering for signing keys
realbigsean 90ade56
Merge branch 'faster-duties' of https://github.com/sigp/lighthouse in…
realbigsean 66b035b
return which validators have been seen from the `seen_validators` end…
realbigsean 1d4db15
Avoid bouncing pubkey lock
paulhauner 0c1a25c
Improve test coverage, fix bugs
paulhauner da4b6ff
Test for proposer cache changes
paulhauner 78c246f
Test proposer duties from future epoch
paulhauner a7e50d8
Add first pass of attn duties refactor
paulhauner 421f829
Fix failing test
paulhauner c902885
Cache next-epoch duties during state advance
paulhauner d4a7b66
Update comment
paulhauner 7c977e0
Add more debugging for shuffling cache
paulhauner d851b7d
Reduce logging for cache
paulhauner 1fbb98d
Add more VC metrics
paulhauner 29e024a
Avoid state read for committee cache
paulhauner 256e00d
More VC metrics
paulhauner 30f7772
Fix clippy lint
paulhauner 8383eec
Merge branch 'faster-duties' of https://github.com/sigp/lighthouse in…
realbigsean c6ca63f
tests
realbigsean a6d9ca2
Merge branch 'unstable' of https://github.com/sigp/lighthouse into do…
realbigsean cd8683c
merge fixes
realbigsean 15d2bbd
fix sim
realbigsean 35920b0
debugging
realbigsean 6fd2de2
fix slot clock read
realbigsean dabd838
Merge branch 'unstable' of https://github.com/sigp/lighthouse into do…
realbigsean bd469af
fix no eth1 sim
realbigsean 6435114
cargo fmt
realbigsean a2522b1
fix logic to keep validators from proposing/attesting
realbigsean 2665fde
update log
realbigsean 4e78a85
update log
realbigsean f612b0f
critical bug
realbigsean b7aae27
move indices to validator store
realbigsean 72a33a8
move indices to validator store
realbigsean 99b4a7e
fix log
realbigsean 211bf30
fix log
realbigsean c7b0626
shutdown sender testing
realbigsean 74f314a
attempt to fix simulator
realbigsean efc15e3
attempt to fix simulator
realbigsean c494e61
revert simulator changes
realbigsean 8961838
Merge branch 'unstable' of https://github.com/sigp/lighthouse into do…
realbigsean 45e4025
Merge branch 'unstable' of https://github.com/sigp/lighthouse into do…
realbigsean ff554a4
doppelganger detection test script
realbigsean 2f01019
fix timeout
realbigsean 58077db
debug
realbigsean 5aa3420
move to script test dir in test suite
realbigsean 8c9027b
test failure
realbigsean 1d7d7d2
test failure
realbigsean abaccef
test success
realbigsean 1614386
Accept validator ids rather than pubkeys in the seen_validators endpo…
realbigsean 58a780d
increase doppelganger detection timeout time
realbigsean 63c4651
typo
realbigsean d136c08
Merge branch 'unstable' of https://github.com/sigp/lighthouse into do…
realbigsean 72c0c51
General PR updates
realbigsean 0dfa14e
Updates to match Paul's API spec proposal
realbigsean b700e85
fix clippy errors
realbigsean 646cdfa
Merge branch 'unstable' of https://github.com/sigp/lighthouse into do…
realbigsean d16e76b
address most of the new PR feedback
realbigsean 2856fdd
Track completed epochs by decrementing `num_remaining_detection_epochs`
realbigsean 91eedd1
Merge branch 'unstable' of https://github.com/sigp/lighthouse into do…
realbigsean cf4a21d
cargo lock update
realbigsean 1668933
Change break -> continue
paulhauner 60a7376
Change logs for global consistency
paulhauner 02e61c3
Add incomplete progress
paulhauner e39feee
sensitive url fix
realbigsean 3bd276c
Restrict signing based on doppelganger
paulhauner f9473d2
Add comments, fix violator detection
paulhauner 604a551
Merge branch 'unstable' into sean-dopple
paulhauner 93e3b32
Add comment
paulhauner 9b77a31
Further tidying
paulhauner 814e96b
Introduce VotingPubkey enum
paulhauner 5471973
Rename function
paulhauner 18e0284
Fix test compile error
paulhauner 90317e9
Tidy
paulhauner 138ddba
Rename VotingPubkey -> DoppelgangerStatus
paulhauner 6d156a9
Add doppelganger protection comment
paulhauner a4216c3
Rename DoppelgangerStatus fns
paulhauner c0c859c
Tidy comments
paulhauner 568670d
Skip validators with inconsistencies, tidy
paulhauner b146c27
Don't exit if BN returns nothing for liveness
paulhauner 91e182d
Appease clippy
paulhauner 589477e
Refactor to smaller functions
paulhauner b5fe24e
Make `detect_doppelgangers` more generic
paulhauner ff22c03
Use generic shutdown signal
paulhauner eb5e9c9
Add first tests
paulhauner 521eb70
Add more testing
paulhauner a78cc52
More testing
paulhauner d73b9dd
Add success scenario test
paulhauner 002c9e6
Add skip forward test
paulhauner 00813e1
Add time skip backwards test
paulhauner 7c9ec9f
Add staggered entry test
paulhauner 8304496
Remove slot clock from doppelganger
paulhauner 10bec29
Update comment
paulhauner a3d9854
Allow selection proof signing
paulhauner fc451bd
Add comment
paulhauner acdc615
Merge branch 'unstable' of https://github.com/sigp/lighthouse into do…
realbigsean d690ef4
Fixes related to merge with `unstable`
realbigsean 4c2817e
add newline
realbigsean 704723a
test shutdown reason success exit code
realbigsean cb991b4
Test failure
realbigsean 47d4b37
rust 1.53.0 updates
realbigsean 28f668c
add recursion limit to `simulator` crate
realbigsean bd7f9d9
cargo fmt
realbigsean e9bb44f
Merge branch 'rust-1.53.0-lints' of https://github.com/realbigsean/li…
realbigsean 2d2e9f1
Test success
realbigsean 284ee60
Merge branch 'doppleganger-detection' of https://github.com/realbigse…
realbigsean 1bac50f
fix duplicate `Cargo.toml` entry
realbigsean d48f84e
- move `DetectionState` mutation to method.
realbigsean 70a4e5a
fix comments, set `DEFAULT_REMAINING_DETECTION_EPOCHS` to 1
realbigsean 0d9c187
Disable doppelganger detection by default
realbigsean 7e7dcb6
Add doppelganger status endpoint
realbigsean 59f272a
Add doppelganger protection enabled method
realbigsean c3e8585
Add docs, fix tests and some comments
realbigsean 7bd8240
Merge branch 'unstable' of https://github.com/sigp/lighthouse into do…
realbigsean 88b7de7
Merge branch 'doppleganger-detection' of https://github.com/realbigse…
realbigsean 72b5f88
Merge branch 'unstable' of https://github.com/sigp/lighthouse into pa…
realbigsean a35bf31
- And an `Arc` around the `ValidatorStore`
realbigsean ce55743
- Add local testnet test for successful doppelganger protection period
realbigsean f4aee3c
remove unncessary `mut`
realbigsean 08e67f4
update doppelganger test in ci
realbigsean 135c130
Merge branch 'unstable' of https://github.com/sigp/lighthouse into do…
realbigsean 9324b6f
update cargo lock
realbigsean a9283a3
Merge branch 'doppleganger-detection' of https://github.com/realbigse…
realbigsean 56b921d
Add a timeout for the liveness request
realbigsean e786eb7
fix test compilation after merge
realbigsean b213f1b
Use Option instead of enabled bool
paulhauner 2bf2860
fix typo and add fork slot to test `.env` files
realbigsean 6e2484c
fix tests
realbigsean 97d6151
Merge pull request #16 from realbigsean/paul-sean-dopple
realbigsean 95cb6b5
improve doppelganger success test
realbigsean 0186494
update seconds per slot on success
realbigsean 0657a7f
fix local testnet
realbigsean a0d9acc
Merge branch 'unstable' of https://github.com/sigp/lighthouse into do…
realbigsean 35c9472
self review updates
realbigsean 26a6c0d
Revert "Add doppelganger status endpoint"
realbigsean 6ceecc5
Small fixes
realbigsean 8412d59
make seconds per eth2 slot default to 3 in scripts
realbigsean 064e4ae
remove duplicate vars.env file
realbigsean a400352
add cli test for doppelganger flag
realbigsean 8c21e5d
verbose commands
realbigsean e180def
add lines to debug
realbigsean 52ab06c
Merge branch 'unstable' of https://github.com/sigp/lighthouse into do…
realbigsean f2d026e
update `is_current_epoch_attester` to `is_current_epoch_target_attest…
realbigsean 7d5a955
Merge branch 'unstable' of https://github.com/sigp/lighthouse into do…
realbigsean 1b196d7
increase bootnode startup wait time
realbigsean de0d6dc
increase seconds per slot
realbigsean baa893e
increase seconds per slot
realbigsean 2452794
increase seconds per slot
realbigsean 1396ae9
update to use previous epoch inclusion
realbigsean 7f3c607
Merge branch 'unstable' of https://github.com/sigp/lighthouse into do…
realbigsean 7794be0
Update validator_client/src/doppelganger_service.rs
realbigsean 2634f96
Update validator_client/src/doppelganger_service.rs
realbigsean f1c1dd3
Update validator_client/src/doppelganger_service.rs
realbigsean 08b9692
Merge branch 'doppleganger-detection' of https://github.com/realbigse…
realbigsean 0a1eac4
PR updates plus a few extra lints
realbigsean File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.