add generate_attestations task
#287
test-pr.yml
on: pull_request
Run code checks
/
Run code checks
2m 19s
Annotations
10 errors
|
Run code checks / Run code checks:
pkg/coordinator/tasks/generate_attestations/task.go#L492
Consider pre-allocating `singleAttestations` (prealloc)
|
|
Run code checks / Run code checks:
pkg/coordinator/tasks/generate_attestations/task.go#L521
shadow: declaration of "err" shadows declaration at line 466 (govet)
|
|
Run code checks / Run code checks:
pkg/coordinator/tasks/generate_attestations/task.go#L509
G404: Use of weak random number generator (math/rand or math/rand/v2 instead of crypto/rand) (gosec)
|
|
Run code checks / Run code checks:
pkg/coordinator/tasks/generate_attestations/task.go#L387
G115: integer overflow conversion int -> uint64 (gosec)
|
|
Run code checks / Run code checks:
pkg/coordinator/tasks/generate_attestations/task.go#L657
unnamedResult: consider giving a name to these results (gocritic)
|
|
Run code checks / Run code checks:
pkg/coordinator/tasks/generate_attestations/task.go#L619
unnamedResult: consider giving a name to these results (gocritic)
|
|
Run code checks / Run code checks:
pkg/coordinator/tasks/generate_attestations/task.go#L599
unnamedResult: consider giving a name to these results (gocritic)
|
|
Run code checks / Run code checks:
pkg/coordinator/tasks/generate_attestations/task.go#L331
paramTypeCombine: func(ctx context.Context, slot uint64, epoch uint64) (int, error) could be replaced with func(ctx context.Context, slot, epoch uint64) (int, error) (gocritic)
|
|
Run code checks / Run code checks:
pkg/coordinator/tasks/generate_attestations/task.go#L269
paramTypeCombine: func(ctx context.Context, slot uint64, startEpoch uint64) (int, error) could be replaced with func(ctx context.Context, slot, startEpoch uint64) (int, error) (gocritic)
|
|
Run code checks / Run code checks:
pkg/coordinator/clients/consensus/rpc/beaconapi.go#L512
paramTypeCombine: func(ctx context.Context, slot uint64, committeeIndex uint64) (*phase0.AttestationData, error) could be replaced with func(ctx context.Context, slot, committeeIndex uint64) (*phase0.AttestationData, error) (gocritic)
|