diff --git a/blockchain/options.go b/blockchain/options.go index f66a5ee..11c96f5 100644 --- a/blockchain/options.go +++ b/blockchain/options.go @@ -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 @@ -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 diff --git a/blox/options.go b/blox/options.go index e0fac49..892ca40 100644 --- a/blox/options.go +++ b/blox/options.go @@ -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 diff --git a/cmd/blox/main.go b/cmd/blox/main.go index fa5b8a9..d7895b4 100644 --- a/cmd/blox/main.go +++ b/cmd/blox/main.go @@ -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",