erigon-pulse/cl/gossip/gossip.go

26 lines
648 B
Go
Raw Normal View History

2023-12-30 15:55:01 +00:00
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)
}