Fix error string generation for missing commitments (#13338)

This commit is contained in:
Justin Traglia 2023-12-14 22:03:45 -06:00 committed by GitHub
parent 4a374435c0
commit 1962cca69e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@ import (
)
// SendNewBlobEvent sends a message to the BlobNotifier channel that the blob
// for the blocroot `root` is ready in the database
// for the block root `root` is ready in the database
func (s *Service) sendNewBlobEvent(root [32]byte, index uint64) {
s.blobNotifiers.notifyIndex(root, index)
}

View File

@ -27,7 +27,7 @@ import (
)
var (
errIndexOutOfBounds = errors.New("blob index in file name > MaxBlobsPerBlock")
errIndexOutOfBounds = errors.New("blob index in file name >= MaxBlobsPerBlock")
)
const (

View File

@ -441,7 +441,7 @@ func verifyAndPopulateBlobs(bwb []blocks2.BlockWithVerifiedBlobs, blobs []blocks
}
func missingCommitError(root [32]byte, slot primitives.Slot, missing [][]byte) error {
missStr := make([]string, len(missing))
missStr := make([]string, 0, len(missing))
for k := range missing {
missStr = append(missStr, fmt.Sprintf("%#x", k))
}