Skip to content

Commit 257dfb6

Browse files
authored
Merge pull request #44 from renproject/fix/filecoin-rpc-url
use HTTP scheme instead of WS
2 parents a13d169 + 5fcfd94 commit 257dfb6

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

chain/filecoin/client.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ const (
2121
// AuthorizationKey is the header key used for authorization
2222
AuthorizationKey = "Authorization"
2323

24-
// DefaultClientRPCURL is the RPC websocket URL used by default, to
25-
// interact with the filecoin lotus node.
26-
DefaultClientRPCURL = "ws://127.0.0.1:1234/rpc/v0"
24+
// DefaultClientRPCURL is the RPC URL used by default, to interact with the
25+
// filecoin lotus node.
26+
DefaultClientRPCURL = "http://127.0.0.1:1234/rpc/v0"
2727

2828
// DefaultClientAuthToken is the auth token used to instantiate the lotus
2929
// client. A valid lotus auth token is required to write messages to the

chain/filecoin/filecoin_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ var _ = Describe("Filecoin", func() {
3131
// instantiate the client
3232
client, err := filecoin.NewClient(
3333
filecoin.DefaultClientOptions().
34-
WithRPCURL("ws://127.0.0.1:1234/rpc/v0").
3534
WithAuthToken(fetchAuthToken()),
3635
)
3736
Expect(err).ToNot(HaveOccurred())

chain/filecoin/gas_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ var _ = Describe("Gas", func() {
2424
// instantiate the client
2525
client, err := filecoin.NewClient(
2626
filecoin.DefaultClientOptions().
27-
WithRPCURL("ws://127.0.0.1:1234/rpc/v0").
2827
WithAuthToken(fetchAuthToken()),
2928
)
3029
Expect(err).ToNot(HaveOccurred())

multichain_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ var _ = Describe("Multichain", func() {
401401
Expect(err).NotTo(HaveOccurred())
402402
return multichain.Address(pack.String(addr.String()))
403403
},
404-
"ws://127.0.0.1:1234/rpc/v0",
404+
"http://127.0.0.1:1234/rpc/v0",
405405
func() multichain.Address {
406406
pk := id.NewPrivKey()
407407
pubKey := pk.PubKey()

0 commit comments

Comments
 (0)