Commit Graph

159 Commits

Author SHA1 Message Date
Jae Kwon e257307b01 cleanup rpc/handlers 2015-03-30 16:00:11 -07:00
Jae Kwon 1a4aab4c35 When using JSONRPC, do not double-encode JSON. 2015-03-30 15:14:33 -07:00
Jae Kwon 5cb57d3eaa Use BlockCache for RPC/mempool and added TxId()
TxId() uses signbytes
2015-03-29 18:43:27 -07:00
Ethan Buchman 731de7a6aa rpc: return (*Response, error) for all functions 2015-03-29 18:02:04 -07:00
Ethan Buchman d30fc2fa43 rpc: fix tests to count mempool; copy responses to avoid data races 2015-03-29 18:02:04 -07:00
Ethan Buchman fb90d5bc92 rpc: cleanup, more tests, working http and jsonrpc 2015-03-29 18:02:03 -07:00
Ethan Buchman 6e81e8a848 rpc: fixes for better type handlings, explicit error field in response, more tests 2015-03-29 18:01:59 -07:00
Ethan Buchman 9aeafffd9b rpc: generalized rpc using reflection on funcs and params 2015-03-29 18:00:28 -07:00
Ethan Buchman d2724c9731 rpc: give each call a dedicated Response struct, add basic test 2015-03-29 18:00:28 -07:00