Allow Optional Signing Roots in Proposal History (#7960)

This commit is contained in:
Raul Jordan
2020-11-25 16:24:07 -06:00
committed by GitHub
parent 36b1eb66d5
commit ae8a619775
7 changed files with 58 additions and 38 deletions

View File

@@ -28,7 +28,7 @@ type ValidatorDB interface {
// New data structure methods
HighestSignedProposal(ctx context.Context, publicKey [48]byte) (uint64, error)
LowestSignedProposal(ctx context.Context, publicKey [48]byte) (uint64, error)
ProposalHistoryForSlot(ctx context.Context, publicKey [48]byte, slot uint64) ([]byte, error)
ProposalHistoryForSlot(ctx context.Context, publicKey [48]byte, slot uint64) ([32]byte, bool, error)
SaveProposalHistoryForSlot(ctx context.Context, pubKey [48]byte, slot uint64, signingRoot []byte) error
ProposedPublicKeys(ctx context.Context) ([][48]byte, error)