Index: state/api/client.go |
=== modified file 'state/api/client.go' |
--- state/api/client.go 2013-02-25 17:48:15 +0000 |
+++ state/api/client.go 2013-03-05 22:43:34 +0000 |
@@ -97,6 +97,13 @@ |
return s.client.Close() |
} |
+// RPCClient returns the RPC client for the state, so that testing |
+// functions can tickle parts of the API that the conventional entry |
+// points don't reach. This is exported for testing purposes only. |
+func (s *State) RPCClient() *rpc.Client { |
+ return s.client |
+} |
+ |
type clientReq struct { |
RequestId uint64 |
Type string |