Skip to content

Commit

Permalink
params: Switch default network to arabica (celestiaorg#1052)
Browse files Browse the repository at this point in the history
  • Loading branch information
renaynay authored and distractedm1nd committed Sep 21, 2022
1 parent 4e967d5 commit 4a5c2b5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions params/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ func bootstrappersFor(net Network) ([]string, error) {

// NOTE: Every time we add a new long-running network, its bootstrap peers have to be added here.
var bootstrapList = map[Network][]string{
Arabica: {
"/dns4/limani.celestia-devops.dev/tcp/2121/p2p/12D3KooWNpRWxpi1APzV6CnwHvdgNRuTUbMNvg4ta2i1fnqYXR7H",
"/dns4/marsellesa.celestia-devops.dev/tcp/2121/p2p/12D3KooWHr2wqFAsMXnPzpFsgxmePgXb8BqpkePebwUgLyZc95bd",
"/dns4/parainem.celestia-devops.dev/tcp/2121/p2p/12D3KooWHX8xpwg8qkP7kLKmKGtgZvmsopvgxc6Fwtu665QC7G8q",
},
Mamaki: {
"/dns4/andromeda.celestia-devops.dev/tcp/2121/p2p/12D3KooWKvPXtV1yaQ6e3BRNUHa5Phh8daBwBi3KkGaSSkUPys6D",
"/dns4/libra.celestia-devops.dev/tcp/2121/p2p/12D3KooWK5aDotDcLsabBmWDazehQLMsDkRyARm1k7f1zGAXqbt4",
Expand Down
2 changes: 1 addition & 1 deletion params/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const (
)

// defaultNetwork defines a default network for the Celestia Node.
var defaultNetwork = Mamaki
var defaultNetwork = Arabica

// DefaultNetwork returns the network of the current build.
func DefaultNetwork() Network {
Expand Down
1 change: 1 addition & 0 deletions params/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ func GenesisFor(net Network) (string, error) {

// NOTE: Every time we add a new long-running network, its genesis hash has to be added here.
var genesisList = map[Network]string{
Arabica: "C364B5937805342009408F7D44DBBF43C02AE227F968CF14C5001613B18CE419",
Mamaki: "41BBFD05779719E826C4D68C4CCBBC84B2B761EB52BC04CFDE0FF8603C9AA3CA",
Private: "",
}
3 changes: 3 additions & 0 deletions params/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import (

// NOTE: Every time we add a new long-running network, it has to be added here.
const (
// Arabica testnet. See: celestiaorg/networks.
Arabica Network = "arabica"
// Mamaki testnet. See: celestiaorg/networks.
Mamaki Network = "mamaki"
// Private can be used to set up any private network, including local testing setups.
Expand All @@ -34,6 +36,7 @@ func (n Network) Validate() error {

// networksList is a strict list of all known long-standing networks.
var networksList = map[Network]struct{}{
Arabica: {},
Mamaki: {},
Private: {},
}

0 comments on commit 4a5c2b5

Please sign in to comment.