Gregory Lemercier

Results 10 comments of Gregory Lemercier

It seems it was fixed by 2a05cf7f61e9cb3e8cd7d633962eced1afe7505f

Let me use an example to try and make sure I understand your request. You would like this JSON-RPC API: __Request:__ ``` curl -X POST --data '{ "jsonrpc": "2.0", "method":...

Ok, so something like this: ``` curl -X POST --data '{ "params": { "username":"myUsername", "password":"myPassword" }, }' -H 'content-type:application/json;' 127.0.0.1:9650/ext/bc/X/rest/addresses ``` Then `listAddresses` would be: ``` curl -X GET --data...

Ok then, let me have a look at all the APIs and see if anything would prevent us from doing a direct mapping.

I think @harsh-98 proposed solution is pretty efficient and does the job nicely. Even though I have no specific gorilla experience it still feels like the codec is not the...

@harsh-98 have you pushed your latest code somewhere? If so I'll have a look and see if there is any way it could be improved based on Collin's request above....

I'm currently looking at how to get rid of the codec stuff in @harsh-98's code. I'm getting there and should be able to find something. Only thing is that it...

Yeah I get it, it's kind of overkill. Although I'm not sure there is any way to avoid it here. The problem is we have a lot of functions like...

One more thing, here is what we currently use to make the mapping between REST endpoints and JRPC methods: ``` var RestMapping map[string]string = map[string]string{ "/tx": "GetTx", "/tx/issue": "IssueTx", "/tx/status":...

@megolosov, you can use `getblock` which is the exact same RPC method as exposed by the Monero daemon. If you still wants to use `get_block`, you can apply this patch...