Fix bug in --builder-proposals (#5151)

* Fix bug in `--builder-proposals`

* Add tests

* More sensible test order

* Fix duplicate builder-boost test case

* Cargo fmt and rename
This commit is contained in:
Michael Sproul
2024-01-31 16:25:55 +11:00
committed by GitHub
parent b035638f9b
commit d2aef1b35c
2 changed files with 53 additions and 1 deletions

View File

@@ -572,7 +572,7 @@ impl<T: SlotClock + 'static, E: EthSpec> ValidatorStore<T, E> {
return Some(u64::MAX);
}
self.builder_boost_factor.or({
if self.builder_proposals {
if !self.builder_proposals {
Some(0)
} else {
None