| 647 | } |
| 648 | |
| 649 | std::string HelpExampleRpc(string methodname, string args) |
| 650 | { |
| 651 | int nRpcPort = GetArg("-rpcport", BaseParams().RPCPort()); |
| 652 | return "> curl --user myusername --data-binary '{\"jsonrpc\": \"1.0\", \"id\":\"curltest\", " |
| 653 | "\"method\": \"" + |
| 654 | methodname + "\", \"params\": [" + args + "] }' -H 'content-type: text/plain;' http://127.0.0.1:" + itostr(nRpcPort) + "/\n"; |
| 655 | } |
| 656 | |
| 657 | void RPCRunLater(const std::string& name, boost::function<void(void)> func, int64_t nSeconds) |
| 658 | { |
no test coverage detected