mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 19:50:36 +00:00
26 lines
648 B
Go
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)
|
||
|
}
|