Skip to content

Commit

Permalink
Merge pull request #71 from TRON-US/BTFS-4280
Browse files Browse the repository at this point in the history
feat: Btfs 4280, btfs config add online sign service
  • Loading branch information
laocheng-cheng authored Jul 27, 2022
2 parents 84fdac0 + f889ead commit 70e9a63
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions experiments.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,6 @@ type Experiments struct {
DisableAutoUpdate bool
HostRepairEnabled bool
HostChallengeEnabled bool
ReportOnline bool
ReportStatusContract bool
}
3 changes: 3 additions & 0 deletions init.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ func flatfsSpec() map[string]interface{} {
func DefaultServicesConfig() Services {
return Services{
StatusServerDomain: "https://status.btfs.io",
OnlineServerDomain: "https://online.btfs.io",
HubDomain: "https://hub.btfs.io",
EscrowDomain: "https://escrow.btfs.io",
GuardDomain: "https://guard.btfs.io",
Expand All @@ -228,6 +229,7 @@ func DefaultServicesConfig() Services {
func DefaultServicesConfigDev() Services {
return Services{
StatusServerDomain: "https://status-dev.btfs.io",
OnlineServerDomain: "https://online-dev.btfs.io",
HubDomain: "https://hub-dev.btfs.io",
EscrowDomain: "https://escrow-dev.btfs.io",
GuardDomain: "https://guard-dev.btfs.io",
Expand All @@ -244,6 +246,7 @@ func DefaultServicesConfigDev() Services {
func DefaultServicesConfigTestnet() Services {
return Services{
StatusServerDomain: "https://status-staging.btfs.io",
OnlineServerDomain: "https://online-staging.btfs.io",
HubDomain: "https://hub-staging.btfs.io",
EscrowDomain: "https://escrow-staging.btfs.io",
GuardDomain: "https://guard-staging.btfs.io",
Expand Down
4 changes: 4 additions & 0 deletions profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,8 @@ fetching may be degraded.
c.Experimental.Libp2pStreamMounting = true
c.Experimental.StorageHostEnabled = true
c.Experimental.Analytics = true
c.Experimental.ReportOnline = true
c.Experimental.ReportStatusContract = true
if len(c.Addresses.RemoteAPI) == 0 {
c.Addresses.RemoteAPI = Strings{"/ip4/0.0.0.0/tcp/5101"}
}
Expand Down Expand Up @@ -399,6 +401,8 @@ func transformDevStorageHost(c *Config) error {
c.Experimental.Libp2pStreamMounting = true
c.Experimental.StorageHostEnabled = true
c.Experimental.Analytics = true
c.Experimental.ReportOnline = true
c.Experimental.ReportStatusContract = true
if len(c.Addresses.RemoteAPI) == 0 {
c.Addresses.RemoteAPI = Strings{"/ip4/0.0.0.0/tcp/5101"}
}
Expand Down
1 change: 1 addition & 0 deletions services.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package config

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

0 comments on commit 70e9a63

Please sign in to comment.