iface

package
v1.0.0-alpha.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 28, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package iface defines an interface for a slashable attestation detector struct.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SpanDetector

type SpanDetector interface {
	// Read functions.
	DetectSlashingsForAttestation(
		ctx context.Context,
		att *ethpb.IndexedAttestation,
	) ([]*types.DetectionResult, error)

	// Write functions.
	UpdateSpans(ctx context.Context, att *ethpb.IndexedAttestation) error
}

SpanDetector defines an interface for Spanners to follow to allow mocks.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL