Commit Graph

19 Commits

Author SHA1 Message Date
Jim McDonald d175f068ff
Fetch remote wallet information in parallel
If a Vouch instance has many wallets it can be slow to start up, as
wallet information is fetched in sequence.  This changes the methodology
to fetch wallets to be parallel, allowing for faster startup times even
when there are many wallets in use.
2021-06-26 14:33:18 +01:00
Jim McDonald c377442e24
Do not overwrite validator list with null.
If Vouch contains a list of validators, and on refresh obtains an empty
list, assume the empty response is a result of an error and do not
remove the existing list in favor of it.

It is possible for network issues to result in an empty response when
requesting an update on the list of validators for which Vouch should
operate.  In this situation, where Vouch already has a list of
validators, it retains that list rather than replace it with the empty
results of the request.

(cherry picked from commit 52c58216cb)
2021-03-06 00:27:50 +00:00
Jim McDonald 5950f8f562
Address crash when proposing block.
If a validator is due to propose a block but cannot obtain the RANDO
reveal it causes Vouch to crash.  This change checks for an empty RANDAO
reveal and exits early from the block proposal process on such a
condition.

Fixes #15.

(cherry picked from commit fb2d95e97b)
2021-03-06 00:17:31 +00:00
Jim McDonald a17f71a90d
Update mocks.
Create mocks for services that do not have them.
Update eth2client mock with more mocks.
2020-12-30 22:07:47 +00:00
Jim McDonald 4071dabf9e
Re-implement accountmanager metrics.
This reintroduces prometheus metrics for the account manager module.
The metrics track the validating state of each account, and are found
under the `vouch_accountmanager_accounts_total` metric.  The metrics are
differentiated using the `state` label.
2020-12-16 13:46:00 +00:00
Jim McDonald aed5402fbb
Tidy ups 2020-11-27 15:26:22 +00:00
Jim McDonald fd48090007
Separate accountmanager. 2020-11-25 00:02:13 +00:00
Jim McDonald 08ea6e8f2c
Implement multisigner for wallet 2020-11-18 10:01:57 +00:00
Jim McDonald faa23bfaa8
Tidy-ups 2020-11-17 12:07:24 +00:00
Jim McDonald 4cb1527b87
Merge branch 'multisign' 2020-11-15 07:29:19 +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 27d079f584
Use multisign for attestations 2020-10-26 14:31:24 +00:00
Jim McDonald fd5540086f
Error appropriately when misconfigured. 2020-10-17 21:50:50 +01:00
Jim McDonald 469e6a02a3
Add measurement of validator status fetching operations 2020-10-09 16:07:42 +01:00
Jim McDonald 58d38d0b90
Fix documentation typos 2020-10-04 07:27:10 +01:00
Jim McDonald e6e14d9971
Tidy-ups 2020-09-30 13:29:26 +01:00
Jim McDonald 8d29b15618
Fetch validators without balances, for faster response from Prysm nodes 2020-09-30 13:24:12 +01:00
Jim McDonald bee97962e7
Initial release 2020-09-28 07:46:00 +01:00