Skip to content

Commit 3a0067a

Browse files
committed
If network is alphanet, then automatically adjust the DNS Bootstrap Id to "alphanet.algodev.network".
1 parent 15cdcea commit 3a0067a

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

config/config.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ const Devnet protocol.NetworkID = "devnet"
3434
// Betanet identifies the 'beta network' use for early releases of feature to the public prior to releasing these to mainnet/testnet
3535
const Betanet protocol.NetworkID = "betanet"
3636

37+
// Alphanet identifies the 'alpha network' use for performance releases of feature/alphanet to the public prior to releasing these to mainnet/testnet
38+
const Alphanet protocol.NetworkID = "alphanet"
39+
3740
// Devtestnet identifies the 'development network for tests' use for running tests against development and not generally accessible publicly
3841
const Devtestnet protocol.NetworkID = "devtestnet"
3942

config/localTemplate.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,8 @@ func (cfg Local) DNSBootstrap(network protocol.NetworkID) string {
472472
return "devnet.algodev.network"
473473
} else if network == Betanet {
474474
return "betanet.algodev.network"
475+
} else if network == Alphanet {
476+
return "alphanet.algodev.network"
475477
}
476478
}
477479
return strings.Replace(cfg.DNSBootstrapID, "<network>", string(network), -1)

0 commit comments

Comments
 (0)