mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-15 06:28:20 +00:00
f5cb04012e
* Config * Updated proto * Updated pool * Updated RPC * Updated validator client * run time works * Clean ups * Fix tests * Visibility * Merge branch 'master' of https://github.com/prysmaticlabs/prysm into aggregator * Raul's feedback * Tests for RPC server * Tests for validator client * Span * More tests * Use go routine for SubmitAggregateAndProof * Go routines * Updated comments * Use array of roles * Fixed tests * Build * Update validator/client/runner.go Co-Authored-By: Preston Van Loon <preston@prysmaticlabs.com> * Update validator/client/runner.go Co-Authored-By: Preston Van Loon <preston@prysmaticlabs.com> * If * Merge branch 'refactor-validator-roles' of https://github.com/prysmaticlabs/prysm into refactor-validator-roles * Empty * Feedback * Merge branch 'master' of https://github.com/prysmaticlabs/prysm into aggregator * Removed proto/eth/v1alpha1/shard_chain.pb.go? * Cleaned up * Revert * Comments * Lint * Comment * Merge branch 'master' into aggregator
39 lines
1.0 KiB
Go
39 lines
1.0 KiB
Go
package testing
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/gogo/protobuf/proto"
|
|
ethpb "github.com/prysmaticlabs/prysm/proto/eth/v1alpha1"
|
|
)
|
|
|
|
// Operations defines a mock for the operations service.
|
|
type Operations struct {
|
|
Attestations []*ethpb.Attestation
|
|
}
|
|
|
|
// AttestationPool --
|
|
func (op *Operations) AttestationPool(ctx context.Context, requestedSlot uint64) ([]*ethpb.Attestation, error) {
|
|
return op.Attestations, nil
|
|
}
|
|
|
|
// AttestationPoolNoVerify --
|
|
func (op *Operations) AttestationPoolNoVerify(ctx context.Context) ([]*ethpb.Attestation, error) {
|
|
return op.Attestations, nil
|
|
}
|
|
|
|
// AttestationPoolForForkchoice --
|
|
func (op *Operations) AttestationPoolForForkchoice(ctx context.Context) ([]*ethpb.Attestation, error) {
|
|
return op.Attestations, nil
|
|
}
|
|
|
|
// HandleAttestation --
|
|
func (op *Operations) HandleAttestation(context.Context, proto.Message) error {
|
|
return nil
|
|
}
|
|
|
|
// AttestationsBySlotCommittee --
|
|
func (op *Operations) AttestationsBySlotCommittee(ctx context.Context, slot uint64, index uint64) ([]*ethpb.Attestation, error) {
|
|
return nil, nil
|
|
}
|