MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / batch

Method batch

test/functional/test_framework/authproxy.py:153–160  ·  view source on GitHub ↗
(self, rpc_call_list)

Source from the content-addressed store, hash-verified

151 return response['result']
152
153 def batch(self, rpc_call_list):
154 postdata = self._json_dumps(list(rpc_call_list))
155 log.debug("--> " + postdata)
156 response, status = self._request('POST', self.__url.path, postdata.encode('utf-8'))
157 if status != HTTPStatus.OK:
158 raise JSONRPCException({
159 'code': -342, 'message': 'non-200 HTTP status code'}, status)
160 return response
161
162 def _get_response(self):
163 req_start_time = time.time()

Callers

nothing calls this directly

Calls 4

_json_dumpsMethod · 0.95
_requestMethod · 0.95
JSONRPCExceptionClass · 0.85
encodeMethod · 0.45

Tested by

no test coverage detected