Skip to content

Commit

Permalink
Revert "fix: should not serve non v0 apis in v0" (#10073)
Browse files Browse the repository at this point in the history
  • Loading branch information
jennijuju authored Jan 19, 2023
1 parent eaccb57 commit 2335bed
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions node/rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,8 @@ func FullNodeHandler(a v1api.FullNode, permissioned bool, opts ...jsonrpc.Server
fnapi = api.PermissionedFullAPI(fnapi)
}

var v0 v0api.FullNode = &(struct{ v0api.FullNode }{&v0api.WrapperV1Full{FullNode: fnapi}})
serveRpc("/rpc/v1", fnapi)
serveRpc("/rpc/v0", v0)
serveRpc("/rpc/v0", &v0api.WrapperV1Full{FullNode: fnapi})

// Import handler
handleImportFunc := handleImport(a.(*impl.FullNodeAPI))
Expand Down

0 comments on commit 2335bed

Please sign in to comment.