Flag to enable duty count down (#8161)

* Add a flag to enable count down

* Add tests
This commit is contained in:
terence tsao
2020-12-18 13:12:57 -08:00
committed by GitHub
parent d8c31b79df
commit ff64fdcfb5
8 changed files with 21 additions and 0 deletions

View File

@@ -40,6 +40,10 @@ func (v *validator) LogAttestationsSubmitted() {
}
func (v *validator) LogNextDutyTimeLeft(slot uint64) error {
if !v.logDutyCountDown {
return nil
}
var nextDutySlot uint64
var role string
for _, duty := range v.duties.CurrentEpochDuties {