Fix slasher ReadOnlyDatabase.BlockHeaders parameter names (#7652)

Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
This commit is contained in:
Victor Farazdagi 2020-10-28 05:36:02 +03:00 committed by GitHub
parent 8c2fff3a75
commit e57770bd0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,8 +22,8 @@ type ReadOnlyDatabase interface {
GetLatestEpochDetected(ctx context.Context) (uint64, error)
// BlockHeader related methods.
BlockHeaders(ctx context.Context, epoch uint64, validatorID uint64) ([]*ethpb.SignedBeaconBlockHeader, error)
HasBlockHeader(ctx context.Context, epoch uint64, validatorID uint64) bool
BlockHeaders(ctx context.Context, slot uint64, validatorID uint64) ([]*ethpb.SignedBeaconBlockHeader, error)
HasBlockHeader(ctx context.Context, slot uint64, validatorID uint64) bool
// IndexedAttestations related methods.
HasIndexedAttestation(ctx context.Context, att *ethpb.IndexedAttestation) (bool, error)