MCPcopy Create free account
hub / github.com/akash-network/node / NewLocalRPCClient

Function NewLocalRPCClient

testutil/network/rpc.go:22–24  ·  view source on GitHub ↗

NewLocalRPCClient creates a new LocalRPCClient wrapping the local client with a local registry instance to avoid mutating global discovery state.

(lc *local.Local, registry *aclient.VersionRegistry)

Source from the content-addressed store, hash-verified

20// NewLocalRPCClient creates a new LocalRPCClient wrapping the local client
21// with a local registry instance to avoid mutating global discovery state.
22func NewLocalRPCClient(lc *local.Local, registry *aclient.VersionRegistry) *LocalRPCClient {
23 return &LocalRPCClient{Local: lc, registry: registry}
24}
25
26// Akash implements the RPCClient interface required by chain-sdk.
27// Returns version discovery info from the local registry.

Callers 1

startInProcessFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected