MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / get_request

Method get_request

test/functional/test_framework/authproxy.py:122–132  ·  view source on GitHub ↗
(self, *args, **argsn)

Source from the content-addressed store, hash-verified

120 return self._get_response()
121
122 def get_request(self, *args, **argsn):
123 AuthServiceProxy.__id_count += 1
124
125 log.debug("-%s-> %s %s" % (AuthServiceProxy.__id_count, self._service_name,
126 json.dumps(args, default=EncodeDecimal, ensure_ascii=self.ensure_ascii)))
127 if args and argsn:
128 raise ValueError('Cannot handle both named and positional arguments')
129 return {'version': '1.1',
130 'method': self._service_name,
131 'params': args or argsn,
132 'id': AuthServiceProxy.__id_count}
133
134 def __call__(self, *args, **argsn):
135 postdata = json.dumps(self.get_request(*args, **argsn), default=EncodeDecimal, ensure_ascii=self.ensure_ascii)

Callers 1

__call__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected