mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-25 16:58:28 +00:00
Expose additional builder booster related flags in the vc (#5086)
* expose builder booster flags in vc, enable options in validator endpoints, update tests * resolve failing test * fix issues related to CreateConfig and MoveConfig * remove unneeded val, change how boost factor flag logic in the vc, add some additional documentation * fix typos * fix typos * assume builder-proosals flag if one of other two vc builder flags are present * fmt * typo * typo * Fix CLI help text * Prioritise per validator builder boost configurations over CLI flags. * Add http test for builder boost factor with process defaults. * Fix issue with PATCH request * Add prefer builder proposals * Add more builder boost factor tests. --------- Co-authored-by: Mac L <mjladson@pm.me> Co-authored-by: Jimmy Chen <jchen.tc@gmail.com> Co-authored-by: Paul Hauner <paul@paulhauner.com>
This commit is contained in:
@@ -464,6 +464,32 @@ fn builder_proposals_flag() {
|
||||
.with_config(|config| assert!(config.builder_proposals));
|
||||
}
|
||||
#[test]
|
||||
fn builder_boost_factor_flag() {
|
||||
CommandLineTest::new()
|
||||
.flag("builder-boost-factor", Some("150"))
|
||||
.run()
|
||||
.with_config(|config| assert_eq!(config.builder_boost_factor, Some(150)));
|
||||
}
|
||||
#[test]
|
||||
fn no_builder_boost_factor_flag() {
|
||||
CommandLineTest::new()
|
||||
.run()
|
||||
.with_config(|config| assert_eq!(config.builder_boost_factor, None));
|
||||
}
|
||||
#[test]
|
||||
fn prefer_builder_proposals_flag() {
|
||||
CommandLineTest::new()
|
||||
.flag("prefer-builder-proposals", None)
|
||||
.run()
|
||||
.with_config(|config| assert!(config.prefer_builder_proposals));
|
||||
}
|
||||
#[test]
|
||||
fn no_prefer_builder_proposals_flag() {
|
||||
CommandLineTest::new()
|
||||
.run()
|
||||
.with_config(|config| assert!(!config.prefer_builder_proposals));
|
||||
}
|
||||
#[test]
|
||||
fn no_builder_registration_timestamp_override_flag() {
|
||||
CommandLineTest::new()
|
||||
.run()
|
||||
|
||||
Reference in New Issue
Block a user