erigon-pulse/cl/gossip/gossip.go
2023-12-30 16:55:01 +01:00

26 lines
648 B
Go

package gossip
import (
"strconv"
"strings"
)
const (
TopicNameBeaconBlock = "beacon_block"
TopicNameBeaconAggregateAndProof = "beacon_aggregate_and_proof"
TopicNameVoluntaryExit = "voluntary_exit"
TopicNameProposerSlashing = "proposer_slashing"
TopicNameAttesterSlashing = "attester_slashing"
TopicNameBlsToExecutionChange = "bls_to_execution_change"
TopicNamePrefixBlobSidecar = "blob_sidecar_"
)
func TopicNameBlobSidecar(d int) string {
return TopicNamePrefixBlobSidecar + strconv.Itoa(d)
}
func IsTopicBlobSidecar(d string) bool {
return strings.Contains(d, TopicNamePrefixBlobSidecar)
}