Cleanup Attester DB Protection Files and Add Back Save Lowest Epochs Functionality (#8232)

* cleanup for att protection

* rename to deprecated

* rem old item

* imports
This commit is contained in:
Raul Jordan
2021-01-12 09:32:13 -06:00
committed by GitHub
parent d2bd954a6c
commit 470d5aa491
18 changed files with 280 additions and 402 deletions

View File

@@ -35,8 +35,6 @@ type ValidatorDB interface {
// Attester protection related methods.
LowestSignedTargetEpoch(ctx context.Context, publicKey [48]byte) (uint64, error)
LowestSignedSourceEpoch(ctx context.Context, publicKey [48]byte) (uint64, error)
SaveLowestSignedTargetEpoch(ctx context.Context, publicKey [48]byte, epoch uint64) error
SaveLowestSignedSourceEpoch(ctx context.Context, publicKey [48]byte, epoch uint64) error
AttestedPublicKeys(ctx context.Context) ([][48]byte, error)
CheckSlashableAttestation(
ctx context.Context, pubKey [48]byte, signingRoot [32]byte, att *ethpb.IndexedAttestation,