Skip to content

Commit

Permalink
changed blockchain api to node instead of local
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsan6sha committed Jul 13, 2024
1 parent d3e29e2 commit b390bf0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions blockchain/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func newOptions(o ...Option) (*options, error) {
authorizer: "", // replace with an appropriate default peer.ID
authorizedPeers: []peer.ID{}, // default to an empty slice
allowTransientConnection: true, // or false, as per your default
blockchainEndPoint: "127.0.0.1:4000", // default endpoint
blockchainEndPoint: "api.node3.functionyard.fula.network", // default endpoint
secretsPath: "", //path to secrets dir
timeout: 30, // default timeout in seconds
wg: nil, // initialized WaitGroup
Expand Down Expand Up @@ -88,7 +88,7 @@ func WithAllowTransientConnection(t bool) Option {
func WithBlockchainEndPoint(b string) Option {
return func(o *options) error {
if b == "" {
b = "127.0.0.1:4000"
b = "api.node3.functionyard.fula.network"
}
o.blockchainEndPoint = b
return nil
Expand Down
2 changes: 1 addition & 1 deletion blox/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ func WithMinSuccessPingRate(sr int) Option {
func WithBlockchainEndPoint(b string) Option {
return func(o *options) error {
if b == "" {
b = "127.0.0.1:4000"
b = "api.node3.functionyard.fula.network"
}
o.blockchainEndpoint = b
return nil
Expand Down
2 changes: 1 addition & 1 deletion cmd/blox/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ func init() {
Name: "blockchainEndpoint",
Usage: "Change the blockchain APIs endpoint",
Destination: &app.blockchainEndpoint,
Value: "127.0.0.1:4000",
Value: "api.node3.functionyard.fula.network",
},
&cli.StringFlag{
Name: "secretsPath",
Expand Down

0 comments on commit b390bf0

Please sign in to comment.