Skip to content

Commit

Permalink
Merge pull request #22 from TRON-US/testnet-mode
Browse files Browse the repository at this point in the history
Switch to testnet mode for storage client dev profile
  • Loading branch information
laipogo authored Jan 15, 2020
2 parents 0ea92bc + 42e2c20 commit bddd6b9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require (
github.com/mitchellh/go-homedir v1.1.0
github.com/multiformats/go-multiaddr v0.0.4
github.com/multiformats/go-multiaddr-dns v0.0.2
github.com/tron-us/go-btfs-common v0.2.8
github.com/tron-us/go-btfs-common v0.2.11
)

go 1.13
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+
github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
github.com/tron-us/go-btfs-common v0.2.8 h1:a/FmQpZIvSjg8fVE81yRVGxGm7WZWpopAK5pWo4N+cI=
github.com/tron-us/go-btfs-common v0.2.8/go.mod h1:9ND33JahGMg52sCC2/gO5DakLsd1Pg2lVe2CihW7lBE=
github.com/tron-us/go-btfs-common v0.2.11 h1:hxc7oUQHPViKzdaTZLHuS2vyYU1e6/IToZI7UY1p2Tk=
github.com/tron-us/go-btfs-common v0.2.11/go.mod h1:9ND33JahGMg52sCC2/gO5DakLsd1Pg2lVe2CihW7lBE=
github.com/tron-us/go-common/v2 v2.0.5/go.mod h1:GiKX9noBLHotkZAU+7ET4h7N0DYWnm3OcGHOFJg1Q68=
github.com/tron-us/protobuf v1.3.4 h1:oqokl6jMAfe1fb/B6t1UMllbw/KtfdJcCn8plxPkHM8=
github.com/tron-us/protobuf v1.3.4/go.mod h1:INMJF54ZV6c8ZMc3imHsMl1kqIpe4VnbCUK4zYcVHqE=
Expand Down
1 change: 1 addition & 0 deletions init.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ const DefaultHostsSyncEnabled = true
// DefaultHostsSyncMode is the default value for the hosts sync mode
// from hub
const DefaultHostsSyncMode = hubpb.HostsReq_SCORE
const DefaultHostsSyncModeDev = hubpb.HostsReq_TESTNET

// DefaultConnMgrHighWater is the default value for the connection managers
// 'high water' mark
Expand Down
2 changes: 1 addition & 1 deletion profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ fetching may be degraded.
c.Experimental.Libp2pStreamMounting = true
c.Experimental.StorageClientEnabled = true
c.Experimental.HostsSyncEnabled = true
c.Experimental.HostsSyncMode = DefaultHostsSyncMode.String()
c.Experimental.HostsSyncMode = DefaultHostsSyncModeDev.String()
if len(c.Addresses.RemoteAPI) == 0 {
c.Addresses.RemoteAPI = Strings{"/ip4/0.0.0.0/tcp/5101"}
}
Expand Down

0 comments on commit bddd6b9

Please sign in to comment.