Skip to content

Commit

Permalink
add rpc.discover (openrpc)
Browse files Browse the repository at this point in the history
  • Loading branch information
iquidus committed Sep 14, 2019
1 parent a6903c8 commit 2a31f97
Show file tree
Hide file tree
Showing 8 changed files with 2,026 additions and 15 deletions.
6 changes: 6 additions & 0 deletions cmd/gubiq/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,11 @@ import (
"github.com/ubiq/go-ubiq/eth"
"github.com/ubiq/go-ubiq/ethclient"
"github.com/ubiq/go-ubiq/internal/debug"
"github.com/ubiq/go-ubiq/internal/openrpc"
"github.com/ubiq/go-ubiq/log"
"github.com/ubiq/go-ubiq/metrics"
"github.com/ubiq/go-ubiq/node"
"github.com/ubiq/go-ubiq/rpc"
cli "gopkg.in/urfave/cli.v1"
)

Expand Down Expand Up @@ -248,6 +250,10 @@ func init() {
console.Stdin.Close() // Resets terminal mode.
return nil
}

if err := rpc.SetDefaultOpenRPCSchemaRaw(openrpc.OpenRPCSchema); err != nil {
log.Crit("Setting OpenRPC default", "error", err)
}
}

func main() {
Expand Down
Loading

0 comments on commit 2a31f97

Please sign in to comment.