Skip to content
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

Add test to beacon node fallback feature #6568

Open
wants to merge 94 commits into
base: unstable
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
94 commits
Select commit Hold shift + click to select a range
71ee4cf
Rework Validator Client fallback mechanism
macladson Jun 13, 2023
52f2be5
Add CI workflow for fallback simulator
macladson Jun 13, 2023
ce4df50
Tie-break with sync distance for non-synced nodes
macladson Jun 13, 2023
6262013
Fix simulator
macladson Jun 13, 2023
f5154be
Cleanup unused code
macladson Jun 14, 2023
d659671
More improvements
macladson Jun 14, 2023
dbce701
Add IsOptimistic enum for readability
macladson Jun 15, 2023
774eb91
Use configurable sync distance tiers
macladson Jun 16, 2023
d839620
Fix tests
macladson Jun 19, 2023
5153aff
Combine status and health and improve logging
macladson Jun 21, 2023
61bc700
Fix nodes not being marked as available
macladson Jun 22, 2023
1295685
Fix simulator
macladson Jul 21, 2023
59c6b09
Fix tests again
macladson Jul 24, 2023
6fc12e6
Increase fallback simulator tolerance
macladson Jul 24, 2023
c9bb547
Add http api endpoint
macladson Aug 1, 2023
b25a135
Fix todos and tests
macladson Aug 1, 2023
23f68ad
Update simulator
macladson Aug 2, 2023
235c452
Merge branch 'unstable' into vc-fallback
macladson Nov 2, 2023
1d70441
Add suggestions
macladson Nov 3, 2023
4ddfc7d
Add id to ui endpoint
macladson Nov 3, 2023
21c34c2
Remove unnecessary clones
macladson Nov 3, 2023
ba92f5d
Formatting
macladson Nov 3, 2023
f87ab63
Merge branch 'unstable' into vc-fallback
macladson Dec 1, 2023
88ebe36
Merge branch 'unstable' into vc-fallback
macladson Dec 13, 2023
6117cef
Fix flag tests
macladson Dec 13, 2023
6dc44b2
Merge branch 'unstable' into vc-fallback
macladson Jan 5, 2024
e555dc9
Merge branch 'unstable' into vc-fallback
macladson Jan 16, 2024
ba32239
Fix conflicts
macladson Jan 16, 2024
5672afe
Merge branch 'unstable' into vc-fallback
macladson Jan 31, 2024
1802080
Remove unnecessary pubs
macladson Feb 1, 2024
a5e9348
Simplify `compute_distance_tier` and reduce notifier awaits
macladson Feb 1, 2024
e368397
Use the more descriptive `user_index` instead of `id`
macladson Feb 5, 2024
ee75a72
Combine sync distance tolerance flags into one
macladson Feb 6, 2024
1d9dc26
Merge branch 'unstable' into vc-fallback
macladson Apr 15, 2024
9897626
Merge branch 'unstable' into vc-fallback
macladson Apr 26, 2024
4c5dd67
wip
macladson Apr 26, 2024
85443e8
Use new simulator from unstable
macladson Apr 26, 2024
037448b
Fix cli text
macladson Apr 26, 2024
b72d219
Remove leftover files
macladson Apr 26, 2024
7e3866a
Remove old commented code
macladson Apr 26, 2024
7f574b3
Merge branch 'unstable' into vc-fallback
macladson Jun 5, 2024
e348231
Update cli text
macladson Jun 5, 2024
5c8dc21
Silence candidate errors when pre-genesis
macladson Jun 6, 2024
3d5e277
Merge branch 'unstable' into vc-fallback
macladson Jun 27, 2024
a431d94
Merge branch 'unstable' into vc-fallback
macladson Jul 8, 2024
c373891
Retry on failure
macladson Jul 16, 2024
95466f0
Merge branch 'unstable' into vc-fallback
macladson Jul 16, 2024
517fae9
Merge branch 'unstable' into vc-fallback
macladson Jul 23, 2024
453e003
Remove disable_run_on_all
macladson Jul 24, 2024
500dbe5
Remove unused error variant
macladson Jul 24, 2024
a63ec8f
Fix out of date comment
macladson Jul 24, 2024
8aa97a8
Merge branch 'unstable' into vc-fallback
macladson Jul 25, 2024
1653484
Remove unnecessary as_u64
macladson Jul 25, 2024
9c206d5
Remove more out of date comments
macladson Jul 25, 2024
526a894
Use tokio RwLock and remove parking_lot
macladson Aug 19, 2024
1fdb4ec
Merge branch 'unstable' into vc-fallback
macladson Aug 19, 2024
2de68ed
Formatting
macladson Aug 19, 2024
4bf2f59
Ensure nodes are still added to total when not available
macladson Aug 22, 2024
4c55b03
Allow VC to detect when BN comes online
macladson Aug 22, 2024
5cc2c13
Fix ui endpoint
macladson Aug 22, 2024
b5445a0
Don't have block_service as an Option
macladson Aug 23, 2024
2675f0d
Merge branch 'unstable' into vc-fallback
macladson Aug 23, 2024
7eab573
Clean up lifetimes and futures
michaelsproul Sep 2, 2024
fff8637
Revert "Don't have block_service as an Option"
macladson Sep 11, 2024
5a55bd6
Merge branch 'unstable' into vc-fallback
macladson Sep 11, 2024
4052827
Merge branch 'unstable' into vc-fallback
jimmygchen Sep 30, 2024
c0afb96
Initial validator test setup.
jimmygchen Oct 1, 2024
464a110
Jimmy's guidance
chong-he Oct 24, 2024
0bf34c4
vc fallback
chong-he Oct 24, 2024
245a1bc
Fix fallback test.
jimmygchen Oct 24, 2024
c0b7a4b
blinded
chong-he Oct 24, 2024
433f753
Merge remote-tracking branch 'Jimmy/vc-fallback-test' into vc-fallbac…
chong-he Oct 29, 2024
00adb54
Store blocks and add test
chong-he Nov 5, 2024
e59fd3a
Changed to signed
chong-he Nov 5, 2024
8d2c669
Minor revisision
chong-he Nov 5, 2024
dcfe832
Add update_all_candidate
chong-he Nov 5, 2024
2ace7c7
first_beacon_node
chong-he Nov 5, 2024
e87f9b9
sync status
chong-he Nov 6, 2024
9b81cc0
Complete `update_all_candidates` test.
jimmygchen Nov 6, 2024
6f23a55
Merge branch 'unstable' into vc-fallback-test
jimmygchen Nov 6, 2024
ed63f70
Fix clippy
chong-he Nov 6, 2024
77c59db
temporarily disable storing blocks test
chong-he Nov 6, 2024
dc97d8a
commented
chong-he Nov 6, 2024
24c243a
ssz
chong-he Nov 6, 2024
93c7b02
Update validator_client/src/beacon_node_fallback.rs
chong-he Nov 7, 2024
636345a
Simplify
chong-he Nov 8, 2024
6d60826
Add first_success test
chong-he Nov 20, 2024
79acbf7
Merge remote-tracking branch 'origin/unstable' into vc-fallback-test
chong-he Nov 21, 2024
3c536dc
Fix
chong-he Nov 21, 2024
8a0d98b
Try to fix
chong-he Nov 22, 2024
3fe3e64
Try to fix
chong-he Nov 22, 2024
cccdc50
small change
chong-he Nov 22, 2024
06af376
Fix test compile
chong-he Nov 26, 2024
20d0f6f
Fix test compile
chong-he Nov 26, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
96 changes: 94 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ log = "0.4"
lru = "0.12"
maplit = "1"
milhouse = "0.3"
mockito = "1.5.0"
num_cpus = "1"
parking_lot = "0.12"
paste = "1"
Expand Down Expand Up @@ -240,6 +241,7 @@ malloc_utils = { path = "common/malloc_utils" }
merkle_proof = { path = "consensus/merkle_proof" }
monitoring_api = { path = "common/monitoring_api" }
network = { path = "beacon_node/network" }
node_test_rig = { path = "testing/node_test_rig"}
operation_pool = { path = "beacon_node/operation_pool" }
pretty_reqwest_error = { path = "common/pretty_reqwest_error" }
proto_array = { path = "consensus/proto_array" }
Expand Down
12 changes: 12 additions & 0 deletions validator_client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ path = "src/lib.rs"

[dev-dependencies]
tokio = { workspace = true }
mockito = { workspace = true }
regex = { workspace = true }
env_logger = { workspace = true }
node_test_rig = { workspace = true }

[dependencies]
account_utils = { workspace = true }
Expand All @@ -24,15 +28,19 @@ environment = { workspace = true }
graffiti_file = { workspace = true }
hyper = { workspace = true }
initialized_validators = { workspace = true }
logging = { workspace = true }
metrics = { workspace = true }
monitoring_api = { workspace = true }
parking_lot = { workspace = true }
reqwest = { workspace = true }
sensitive_url = { workspace = true }
slashing_protection = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
slog = { workspace = true }
slot_clock = { workspace = true }
task_executor = { workspace = true }
tempfile = { workspace = true }
types = { workspace = true }
validator_http_api = { workspace = true }
validator_http_metrics = { workspace = true }
Expand All @@ -41,3 +49,7 @@ validator_services = { workspace = true }
validator_store = { workspace = true }
tokio = { workspace = true }
fdlimit = "0.3.0"
env_logger = { workspace = true }
mockito = { workspace = true }
regex = { workspace = true }
eth2_config = { workspace = true }
8 changes: 8 additions & 0 deletions validator_client/beacon_node_fallback/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,11 @@ strum = { workspace = true }
tokio = { workspace = true }
types = { workspace = true }
validator_metrics = { workspace = true }

[dev-dependencies]
env_logger = { workspace = true }
eth2_config = { workspace = true }
mockito = { workspace = true }
validator_client = { workspace = true }
validator_services = { workspace = true }
logging = { workspace = true }
Loading
Loading