Skip to content

Commit

Permalink
Merge pull request #75 from TRON-US/BTFS-5300-drop-status
Browse files Browse the repository at this point in the history
feat: drop status domain
  • Loading branch information
Yrp authored Nov 2, 2022
2 parents 261049c + 2f79b8e commit 886d5df
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 25 deletions.
31 changes: 15 additions & 16 deletions bootstrap_peers.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,22 +37,21 @@ var DefaultBootstrapAddresses = []string{
"/ip4/15.184.96.102/tcp/4001/p2p/16Uiu2HAmFVWTvouWpQTRjMb4bUaidfLzsH2RVogcGHb6RwvPSxuT",
}
var DefaultTestnetBootstrapAddresses = []string{
"/ip4/18.158.67.141/tcp/4000/p2p/16Uiu2HAmNvMMxEEfP1mg5d6TUQQLWhHd4s4moAB8xPgCgZBTwwZF",
"/ip4/18.158.67.141/tcp/4001/p2p/16Uiu2HAmUYNteRBWb12KGZ2UwogfuVdCFJfuH3fYP3bcndTUY4ZF",
"/ip4/18.158.67.141/tcp/4002/p2p/16Uiu2HAmJCoTMZkmW1zkCVCnohTiCk1PyepxeGMgnvQYpnQMxqVb",
"/ip4/18.158.67.141/tcp/4003/p2p/16Uiu2HAkxcrp6Pf5WvzQEEbEMVMZfTrtMpnTJCJcUaN6PGDKvegX",
"/ip4/18.163.235.175/tcp/4000/p2p/16Uiu2HAkw8Pkrf4fARvKZUcPBH7LhhVG4PoZBqKni3kbWkYsPYog",
"/ip4/18.163.235.175/tcp/4001/p2p/16Uiu2HAmJ9xHAr4ymFBt16tvst1psSc9jMRsbxvUDC2xw1XtnAEg",
"/ip4/18.163.235.175/tcp/4002/p2p/16Uiu2HAmLVmEkbxbq3Pmem5qun8HB1t9npkjycmqCf3Sk4wy8EPx",
"/ip4/18.163.235.175/tcp/4003/p2p/16Uiu2HAmLxRpzJKTzGkW8ajtbg89p8TTgagdHrvAWbum7rftTrQS",
"/ip4/18.224.174.215/tcp/4000/p2p/16Uiu2HAmDonyuAvQtGJ7kvM5xB3aJz25niDAzYoYQUjSuaZJopoZ",
"/ip4/18.224.174.215/tcp/4001/p2p/16Uiu2HAm3CyQ4o9adf642iZDUfQW4qVsm9FeBummYDzY9ExTrf3v",
"/ip4/18.224.174.215/tcp/4002/p2p/16Uiu2HAkyu5b6D7TwLNSQfvK2xyZWevTaLLaiKG2tKsQfd272LGs",
"/ip4/18.224.174.215/tcp/4003/p2p/16Uiu2HAm6biQRpXPKi92X4i9bCjnbTtPAmQ97czMjWhutvdE9m46",
"/ip4/54.151.185.243/tcp/4000/p2p/16Uiu2HAmU9ysnuasmdyq1rRePYTwHntmyhZdfC9wm4qCPQMAh9Qq",
"/ip4/54.151.185.243/tcp/4001/p2p/16Uiu2HAmBr4p1met83wxVCyVwpQexBVzSZrawfnLeWH9Ce8wwwtg",
"/ip4/54.151.185.243/tcp/4002/p2p/16Uiu2HAmBqxLRBmjF16sQuyQxdWf9dgXVzY3Qp5YXjKT5zgkmsVN",
"/ip4/54.151.185.243/tcp/4003/p2p/16Uiu2HAmSg1CHTDNEazJnDGfhA5pGbw1RZK1g2HZJmi3JVPkHGW8",
"/ip4/18.224.174.215/tcp/45301/p2p/16Uiu2HAmFFwNdgSoLhfgJUPEfPEVodppRxaeZBVpAvrH5s3qSkWo",
"/ip4/18.224.174.215/tcp/34237/p2p/16Uiu2HAmDigS3SDx6g9Sp6MUfdFHvDwS8Zw8E14V6bLhCAHA3jjB",
"/ip4/18.224.174.215/tcp/43097/p2p/16Uiu2HAm7HQoEbQe1fYt4LtnG6z5TqwTrrqUv5xsnt4nukskWmAi",
"/ip4/18.224.174.215/tcp/38955/p2p/16Uiu2HAm5WrYvkJwaRP7ZAroWCfjaUxKkNssqcSmEmKJ8vXVYp1o",
"/ip4/54.151.185.243/tcp/36707/p2p/16Uiu2HAmDis3wAorW46YyNmXNk963VAAHwZ1phjHXj5yduyawAUy",
"/ip4/54.151.185.243/tcp/42741/p2p/16Uiu2HAmSfqLCyqH5qQQF8zpzPMQvWiQunhWpYtSxwGw5QR2jhgU",
"/ip4/54.151.185.243/tcp/37403/p2p/16Uiu2HAmBHwyRUETsGqjYpgPRpnMC9y39tcVYH6vKxZidCBcBeFG",
"/ip4/54.151.185.243/tcp/37739/p2p/16Uiu2HAm2oKy37KvYmiv1nnRWZwUoLPZumNKFxPzhM1t8F3KxADu",
"/ip4/18.158.67.141/tcp/40155/p2p/16Uiu2HAmTMEqndByECXuxk1Rg8szxMqwS3tUFFWhAUduFzwfwmfK",
"/ip4/18.158.67.141/tcp/44569/p2p/16Uiu2HAmL4QNi68nSNbedUWp1A1cRR3z3NuJqQYmAYoj19ht6iNv",
"/ip4/18.158.67.141/tcp/39703/p2p/16Uiu2HAkzF6JMx4EL2C4cLoCLyQH8t1sgyttQxPfQtNt5FZhvpxs",
"/ip4/18.158.67.141/tcp/46713/p2p/16Uiu2HAm85HXJA7xmgNxxTVdFRuRCGstvrY8nW6KqfTtkuZrZg64",
"/ip4/18.163.235.175/tcp/36335/p2p/16Uiu2HAm8wVUsVsqksBfxy6yzHpVv5gELQnpU7Q2uhDyXFwr9bfV",
"/ip4/18.163.235.175/tcp/44029/p2p/16Uiu2HAmBvnQU5FWgEcfY1jaAK2Q9iQBy6FwQdDUtyT7mo8HU1Yu",
"/ip4/18.163.235.175/tcp/40191/p2p/16Uiu2HAkurshicwtTrqbrL3yv9xR7hogPvreUHJP3W8n9W5XMibz",
}

// ErrInvalidPeerAddr signals an address is not a valid peer address.
Expand Down
6 changes: 3 additions & 3 deletions init.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ func flatfsSpec() map[string]interface{} {
// DefaultServicesConfig returns the default set of configs for external services.
func DefaultServicesConfig() Services {
return Services{
StatusServerDomain: "https://status.btfs.io",
//StatusServerDomain: "https://status.btfs.io",
OnlineServerDomain: "https://online.btfs.io",
HubDomain: "https://score.btfs.io",
EscrowDomain: "https://escrow.btfs.io",
Expand All @@ -229,7 +229,7 @@ func DefaultServicesConfig() Services {
// DefaultServicesConfigDev returns the default set of configs for dev external services.
func DefaultServicesConfigDev() Services {
return Services{
StatusServerDomain: "https://status-dev.btfs.io",
//StatusServerDomain: "https://status-dev.btfs.io",
OnlineServerDomain: "https://online-dev.btfs.io",
HubDomain: "https://score-dev.btfs.io",
EscrowDomain: "https://escrow-dev.btfs.io",
Expand All @@ -246,7 +246,7 @@ func DefaultServicesConfigDev() Services {
// DefaultServicesConfigTestnet returns the default set of configs for testnet external services.
func DefaultServicesConfigTestnet() Services {
return Services{
StatusServerDomain: "https://status-staging.btfs.io",
//StatusServerDomain: "https://status-staging.btfs.io",
OnlineServerDomain: "https://online-staging.btfs.io",
HubDomain: "https://score-staging.btfs.io",
EscrowDomain: "https://escrow-staging.btfs.io",
Expand Down
10 changes: 5 additions & 5 deletions migrations.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ func migrate_1_Services(cfg *Config) bool {
}

func migrate_2_StatusUrl(cfg *Config) bool {
if strings.Contains(cfg.Services.StatusServerDomain, "db.btfs.io") {
ds := DefaultServicesConfig()
cfg.Services.StatusServerDomain = ds.StatusServerDomain
return true
}
//if strings.Contains(cfg.Services.StatusServerDomain, "db.btfs.io") {
// ds := DefaultServicesConfig()
// cfg.Services.StatusServerDomain = ds.StatusServerDomain
// return true
//}
return false
}

Expand Down
2 changes: 1 addition & 1 deletion services.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package config

type Services struct {
StatusServerDomain string
//StatusServerDomain string
OnlineServerDomain string
HubDomain string
EscrowDomain string
Expand Down

0 comments on commit 886d5df

Please sign in to comment.