nimbus-eth2/beacon_chain/validator_client
Eugene Kabanov b51152153a
VC: Hardening and optimizing time handling. (#4743)
* Fix durationToNextSlot() and durationToNextEpoch() to work not only after Genesis, but also before Genesis.
Change VC pre-genesis behavior, add runPreGenesisWaitingLoop() and runGenesisWaitingLoop().
Add checkedWaitForSlot() and checkedWaitForNextSlot() to strictly check current time and print warnings.
Fix VC main loop to use checkedWaitForNextSlot().
Fix attestation_service to run attestations processing only until the end of the duty slot.
Change attestation_service main loop to use checkedWaitForNextSlot().
Change block_service to properly cancel all the pending proposer tasks.
Use checkedWaitForSlot to wait for block proposal.
Fix block_service waitForBlockPublished() to be compatible with BN.
Fix sync_committee_service to avoid asyncSpawn.
Fix sync_committee_service to run only until the end of the duty slot.
Fix sync_committee_service to use checkedWaitForNextSlot().

* Refactor validator logging.
Fix aggregated attestation publishing missing delay.

* Fix doppelganger detection should not start at pre-genesis time.
Fix fallback service sync status spam.
Fix false `sync committee subnets subscription error`.

* Address review comments part 1.

* Address review comments.

* Fix condition issue for near genesis waiting loop.

* Address review comments.

* Address review comments 2.
2023-04-17 21:31:54 +00:00
..
api.nim rename ConsensusFork.EIP4844 to ConsensusFork.Deneb (#4692) 2023-03-04 13:35:39 +00:00
attestation_service.nim VC: Hardening and optimizing time handling. (#4743) 2023-04-17 21:31:54 +00:00
block_service.nim VC: Hardening and optimizing time handling. (#4743) 2023-04-17 21:31:54 +00:00
common.nim VC: Hardening and optimizing time handling. (#4743) 2023-04-17 21:31:54 +00:00
doppelganger_service.nim VC: Hardening and optimizing time handling. (#4743) 2023-04-17 21:31:54 +00:00
duties_service.nim VC: Hardening and optimizing time handling. (#4743) 2023-04-17 21:31:54 +00:00
fallback_service.nim VC: Hardening and optimizing time handling. (#4743) 2023-04-17 21:31:54 +00:00
fork_service.nim VC: Hardening and optimizing time handling. (#4743) 2023-04-17 21:31:54 +00:00
sync_committee_service.nim VC: Hardening and optimizing time handling. (#4743) 2023-04-17 21:31:54 +00:00