Commit Graph

25 Commits

Author SHA1 Message Date
Jim McDonald d7efbd856b
Sync committee slot offset.
Ensure that sync committee messages are created for the slots of the
sync period, rather than in the slots of the sync period.
2021-08-02 19:53:57 +01:00
Jim McDonald 2a17229b39
Tidy ups for sync committee scheduling. 2021-08-02 19:53:56 +01:00
Jim McDonald 34d6df9312
Work for Altair. 2021-08-02 19:53:47 +01:00
Jim McDonald 41afb240c2
Remove spec import alias.
Specification imports for phase0 were aliased as 'spec'.  Due to the
mechanism decided upon to manage structs that vary beteween hard forks
this is no longer useful, so this removes the alias in preparation for
the Altair hard fork.
2021-07-18 07:34:43 +01:00
Jim McDonald dc0847acfd
Rework conditions for reorgs.
Avoid refetching attestation and proposal duties when not necessary in
the situation where a block for slot 0 of the epoch is not presented.
2021-05-04 10:51:25 +01:00
Jim McDonald 3b6e160fb8
Provide flag to enable chain reorganisations. 2021-02-24 22:05:11 +00:00
Jim McDonald 05e5464948
Reduce log message 2021-02-01 16:11:13 +00:00
Jim McDonald 443ca18d4e
Handle chain reorganisations.
When a chain reorganisation occurs it is possible that this impacts
Vouch's attestations and proposals for the current and next epoch.  This
patch listens to the Ethereum 2 events stream for reorganisation
notifications.  If it finds one it cancels existing and creates new
duties, as required.
2021-01-31 13:49:15 +00:00
Jim McDonald 4e2aaf6c5c
Add `controller.max-attestation-delay`
This option allows users to control the maximum amount of time that
Vouch will wait for a block to arrive before starting its attestation
process.  Note that this is a spec value, so changes can have a highly
detrimental impact on Vouch's behaviour.
2020-12-30 23:12:05 +00:00
Jim McDonald 052bc332d4
Add `epoch_slot` to block receipt delay.
This adds a label `epoch_slot` to the prometheus metric
`vouch_block_receipt_delay_seconds`.  It has been noted that the receipt
delay is often significantly higher for the first (and, to a lesser
extent, second) slot in a given epoch.  This allows the receipt delay to
be examined for specific slots in a given epoch.
2020-12-26 17:28:01 +00:00
Jim McDonald aed5402fbb
Tidy ups 2020-11-27 15:26:22 +00:00
Jim McDonald 925e69fb9a
Update dependencies 2020-11-26 20:32:04 +00:00
Jim McDonald 5b9f103612
Tweak timings 2020-11-26 02:37:22 +00:00
Jim McDonald fd48090007
Separate accountmanager. 2020-11-25 00:02:13 +00:00
Jim McDonald faa23bfaa8
Tidy-ups 2020-11-17 12:07:24 +00:00
Jim McDonald 981bdcbfa5
Re-enable prysm aggregation 2020-11-14 23:44:22 +00:00
Jim McDonald 9087add881
Merge branch 'proposal-slot-scaling' 2020-11-14 12:26:53 +00:00
Jim McDonald 4e5fbf18ba
Initial work on support of standard API 2020-11-14 08:36:49 +00:00
Jim McDonald 796cb6348f
Initial move to go-eth2-client 2020-10-28 15:09:51 +00:00
Jim McDonald c6adf2c7e5
Exit attest/aggregate routine on attestation failure. 2020-10-20 07:22:41 +01:00
Jim McDonald 6845a0ac08
Avoid crash if beacon committee subscription information is not present.
Fixes #1
2020-10-13 12:40:18 +01:00
Jim McDonald e19fae7b4e
Ensure genesis attestes are scheduled appropriately. 2020-10-04 08:12:34 +01:00
Jim McDonald cfbe1726da
Do not fetch validator status twice on startup 2020-09-30 13:24:42 +01:00
Jim McDonald b279c097df
Do not return early if validator update fails. 2020-09-29 22:41:30 +01:00
Jim McDonald bee97962e7
Initial release 2020-09-28 07:46:00 +01:00