-
Notifications
You must be signed in to change notification settings - Fork 202
/
constants.go
32 lines (22 loc) · 1.14 KB
/
constants.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package p2p
import (
"github.com/multiversx/mx-chain-communication-go/p2p"
)
// NetworkType defines the type of the network a messenger is running on
type NetworkType = p2p.NetworkType
// MainNetwork defines the main network
const MainNetwork NetworkType = "main"
// FullArchiveNetwork defines the full archive network
const FullArchiveNetwork NetworkType = "full archive"
// ListsSharder is the variant that uses lists
const ListsSharder = p2p.ListsSharder
// NilListSharder is the variant that will not do connection trimming
const NilListSharder = p2p.NilListSharder
// ConnectionWatcherTypePrint - new connection found will be printed in the log file
const ConnectionWatcherTypePrint = p2p.ConnectionWatcherTypePrint
// LocalHostListenAddrWithIp4AndTcp defines the local host listening ip v.4 address and TCP
const LocalHostListenAddrWithIp4AndTcp = p2p.LocalHostListenAddrWithIp4AndTcp
// DefaultWithScaleResourceLimiter defines the default & autoscale resource limiter
const DefaultWithScaleResourceLimiter = p2p.DefaultWithScaleResourceLimiter
// BroadcastMethod defines the broadcast method of the message
type BroadcastMethod = p2p.BroadcastMethod