Closed TrantorRWS closed 6 years ago
Looks like the rpc you called requires at least a param"error":{"code":-8,"message":"Failed to parse request: wrong number of params (expected between 1 and 2, received 0)"}
. Provide the rpc that failed, thanks.
The only information about batch RPC request I can find in the sourcee code is:
var batchRpcCalls = [
['validateaddress', [options.address]],
['getdifficulty', []],
['getinfo', []],
['getmininginfo', []],
['submitblock', []]
];
If I try to send submit block with dcrctl I got:
./dcrctl -j submitblock
submitblock command: wrong number of params (expected between 1 and 2, received 0) (code: ErrNumParams)
Usage:
submitblock "hexblock" ({"workid":"value"})
the rpc documentation should have what you need https://github.com/decred/dcrd/blob/master/docs/json_rpc_api.md
I'm going to close this as it does not appear to be a bug with dcrd, rather an issue in how it's being called.
I just tried to compile latest dcrd code that should support batch request. PR https://github.com/decred/dcrd/pull/841 I tested to run a pool with NOMP but it failed when a request with no parameter is send to daemon:
It seems that you pointed this issue here : https://github.com/decred/dcrd/pull/841#issuecomment-361356019
Tested in mainnet and testnet with two different version of NOMP