mirror of https://github.com/certusone/vouch.git
Fix documentation typos
This commit is contained in:
parent
1f1783ed95
commit
58d38d0b90
|
@ -19,7 +19,7 @@ accountmanager:
|
||||||
client-key: file:///home/me/certs/validator.example.com.key
|
client-key: file:///home/me/certs/validator.example.com.key
|
||||||
ca-cert: file:///home/me/certs/ca.crt
|
ca-cert: file:///home/me/certs/ca.crt
|
||||||
accounts:
|
accounts:
|
||||||
- my valdiators
|
- my validators
|
||||||
```
|
```
|
||||||
|
|
||||||
Each item is explained in more detail below.
|
Each item is explained in more detail below.
|
||||||
|
@ -59,7 +59,7 @@ accountmanager:
|
||||||
locations:
|
locations:
|
||||||
- /home/me/wallets
|
- /home/me/wallets
|
||||||
accounts:
|
accounts:
|
||||||
- my valdiators
|
- my validators
|
||||||
passphrases:
|
passphrases:
|
||||||
- file:///home/me/secrets/passphrase
|
- file:///home/me/secrets/passphrase
|
||||||
```
|
```
|
||||||
|
|
|
@ -23,7 +23,7 @@ import (
|
||||||
// Service is the generic accountmanager service.
|
// Service is the generic accountmanager service.
|
||||||
type Service interface{}
|
type Service interface{}
|
||||||
|
|
||||||
// ValidatingAccountsProvider provides methods for valdiating accounts.
|
// ValidatingAccountsProvider provides methods for validating accounts.
|
||||||
type ValidatingAccountsProvider interface {
|
type ValidatingAccountsProvider interface {
|
||||||
// Accounts provides information about all accounts that are configured to validate through this instance.
|
// Accounts provides information about all accounts that are configured to validate through this instance.
|
||||||
Accounts(ctx context.Context) ([]ValidatingAccount, error)
|
Accounts(ctx context.Context) ([]ValidatingAccount, error)
|
||||||
|
|
|
@ -156,7 +156,7 @@ func (s *Service) Aggregate(ctx context.Context, data interface{}) {
|
||||||
s.monitor.AttestationAggregationCompleted(started, "succeeded")
|
s.monitor.AttestationAggregationCompleted(started, "succeeded")
|
||||||
}
|
}
|
||||||
|
|
||||||
// IsAggregator reports if we are an attestation aggregator for a given valdiator/committee/slot combination.
|
// IsAggregator reports if we are an attestation aggregator for a given validator/committee/slot combination.
|
||||||
func (s *Service) IsAggregator(ctx context.Context, validatorIndex uint64, committeeIndex uint64, slot uint64, committeeSize uint64) (bool, []byte, error) {
|
func (s *Service) IsAggregator(ctx context.Context, validatorIndex uint64, committeeIndex uint64, slot uint64, committeeSize uint64) (bool, []byte, error) {
|
||||||
modulo := committeeSize / s.targetAggregatorsPerCommittee
|
modulo := committeeSize / s.targetAggregatorsPerCommittee
|
||||||
if modulo == 0 {
|
if modulo == 0 {
|
||||||
|
|
Loading…
Reference in New Issue