Skip to content

Commit

Permalink
rpc endpoint tips
Browse files Browse the repository at this point in the history
  • Loading branch information
bibibong committed Feb 22, 2021
1 parent c5bdb88 commit 2340d45
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion chain/exchange/doc.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Package exchange contains the ChainExchange server and client components.
//
// ChainExchange is the basic chain synchronization protocol of Filecoin.
// ChainExchange is the basic chain synchronization protocol of EpiK.
// ChainExchange is an RPC-oriented protocol, with a single operation to
// request blocks for now.
//
Expand Down
2 changes: 1 addition & 1 deletion cli/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -1670,7 +1670,7 @@ func parseParamsForMethod(act cid.Cid, method uint64, args []string) ([]byte, er

var stateCircSupplyCmd = &cli.Command{
Name: "circulating-supply",
Usage: "Get the exact current circulating supply of Filecoin",
Usage: "Get the exact current circulating supply of EpiK",
Flags: []cli.Flag{
&cli.BoolFlag{
Name: "vm-supply",
Expand Down
2 changes: 1 addition & 1 deletion cmd/epik-shed/rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ var rpcCmd = &cli.Command{
Params json.RawMessage `json:"params"`
}{
Jsonrpc: "2.0",
Method: "Filecoin." + method,
Method: "EpiK." + method,
Params: json.RawMessage(params),
ID: 0,
})
Expand Down
2 changes: 1 addition & 1 deletion cmd/epik-storage-miner/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func main() {

app := &cli.App{
Name: "epik-miner",
Usage: "Filecoin decentralized storage network miner",
Usage: "EpiK decentralized storage network miner",
Version: build.UserVersion(),
EnableBashCompletion: true,
Flags: []cli.Flag{
Expand Down
2 changes: 1 addition & 1 deletion cmd/lotus-gateway/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ var runCmd = &cli.Command{
registry := promclient.DefaultRegisterer.(*promclient.Registry)
exporter, err := prometheus.NewExporter(prometheus.Options{
Registry: registry,
Namespace: "lotus_gw",
Namespace: "epik_gw",
})
if err != nil {
return err
Expand Down
4 changes: 2 additions & 2 deletions cmd/lotus-wallet/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ func main() {
},
&cli.StringFlag{
Name: "repo",
EnvVars: []string{"LOTUS_PATH"},
EnvVars: []string{"EPIK_PATH"},
Hidden: true,
Value: "~/.lotus",
Value: "~/.epik",
},
},

Expand Down
4 changes: 2 additions & 2 deletions testplans/lotus-soup/testkit/role_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,12 @@ func startFullNodeAPIServer(t *TestEnvironment, repo repo.Repo, api api.FullNode
mux := mux.NewRouter()

rpcServer := jsonrpc.NewServer()
rpcServer.Register("Filecoin", api)
rpcServer.Register("EpiK", api)

mux.Handle("/rpc/v0", rpcServer)

exporter, err := prometheus.NewExporter(prometheus.Options{
Namespace: "lotus",
Namespace: "epik",
})
if err != nil {
return nil, err
Expand Down
4 changes: 2 additions & 2 deletions testplans/lotus-soup/testkit/role_miner.go
Original file line number Diff line number Diff line change
Expand Up @@ -596,14 +596,14 @@ func startStorageMinerAPIServer(t *TestEnvironment, repo repo.Repo, minerApi api
mux := mux.NewRouter()

rpcServer := jsonrpc.NewServer()
rpcServer.Register("Filecoin", minerApi)
rpcServer.Register("EpiK", minerApi)

mux.Handle("/rpc/v0", rpcServer)
mux.PathPrefix("/remote").HandlerFunc(minerApi.(*impl.StorageMinerAPI).ServeRemote)
mux.PathPrefix("/").Handler(http.DefaultServeMux) // pprof

exporter, err := prometheus.NewExporter(prometheus.Options{
Namespace: "lotus",
Namespace: "epik",
})
if err != nil {
return nil, err
Expand Down

0 comments on commit 2340d45

Please sign in to comment.