-
Notifications
You must be signed in to change notification settings - Fork 94
/
BootstrapNodes.hs
65 lines (59 loc) · 1.86 KB
/
BootstrapNodes.hs
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{-# LANGUAGE CPP #-}
{-# LANGUAGE OverloadedStrings #-}
-- |
-- Module: P2P.BootstrapNodes
-- Copyright: Copyright © 2020 Kadena LLC.
-- License: MIT
-- Maintainer: Lars Kuhtz <lars@kadena.io>
-- Stability: experimental
--
-- TODO
--
module P2P.BootstrapNodes
( mainnetBootstrapHosts
, testnetBootstrapHosts
) where
-- internal modules
import Chainweb.HostAddress
-- -------------------------------------------------------------------------- --
-- | Mainnet bootstrap nodes.
--
-- Nodes in this list need a public DNS name and a corresponding TLS
-- certificate. Operators of the nodes are expected to guarantee long term
-- availability of the nodes.
--
-- Please make a pull request, if you like to see your node being included here.
--
mainnetBootstrapHosts :: [HostAddress]
mainnetBootstrapHosts = map unsafeHostAddressFromText
[ "us-e1.chainweb.com:443"
, "us-e2.chainweb.com:443"
, "us-e3.chainweb.com:443"
, "us-w1.chainweb.com:443"
, "us-w2.chainweb.com:443"
, "us-w3.chainweb.com:443"
, "fr1.chainweb.com:443"
, "fr2.chainweb.com:443"
, "fr3.chainweb.com:443"
, "jp1.chainweb.com:443"
, "jp2.chainweb.com:443"
, "jp3.chainweb.com:443"
]
-- -------------------------------------------------------------------------- --
-- | Testnet bootstrap nodes.
--
-- Nodes in this list need a public DNS name and a corresponding TLS
-- certificate. Operators of the nodes are expected to guarantee long term
-- availability of the nodes.
--
-- Please make a pull request, if you like to see your node being included here.
--
testnetBootstrapHosts :: [HostAddress]
testnetBootstrapHosts = map unsafeHostAddressFromText
[ "us1.testnet.chainweb.com:443"
, "us2.testnet.chainweb.com:443"
, "eu1.testnet.chainweb.com:443"
, "eu2.testnet.chainweb.com:443"
, "ap1.testnet.chainweb.com:443"
, "ap2.testnet.chainweb.com:443"
]