/* Copyright 2022 Erigon-Lightclient contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package handlers const ProtocolPrefix = "/eth2/beacon_chain/req" const EncodingProtocol = "/ssz_snappy" // request and response versions const Schema1 = "/1" const Schema2 = "/2" // Request and Response topics const MetadataTopic = "/metadata" const PingTopic = "/ping" const StatusTopic = "/status" const GoodbyeTopic = "/goodbye" const BeaconBlockByRangeTopic = "/beacon_block_by_range" const BeaconBlockByRootTopic = "/beacon_block_by_root" // Request and Response protocol ids var ( PingProtocolV1 = ProtocolPrefix + PingTopic + Schema1 + EncodingProtocol GoodbyeProtocolV1 = ProtocolPrefix + GoodbyeTopic + Schema1 + EncodingProtocol MetadataProtocolV1 = ProtocolPrefix + MetadataTopic + Schema1 + EncodingProtocol MetadataProtocolV2 = ProtocolPrefix + MetadataTopic + Schema2 + EncodingProtocol StatusProtocolV1 = ProtocolPrefix + StatusTopic + Schema1 + EncodingProtocol BeaconBlockByRangeProtocolV1 = ProtocolPrefix + BeaconBlockByRangeTopic + Schema1 + EncodingProtocol BeaconBlockByRootProtocolV1 = ProtocolPrefix + BeaconBlockByRootTopic + Schema1 + EncodingProtocol )