Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/blockchain.cpp
Show First 20 Lines • Show All 322 Lines • ▼ Show 20 Lines | RPCHelpMan{ | ||||
"", | "", | ||||
"", | "", | ||||
{ | { | ||||
{RPCResult::Type::STR_HEX, "hash", "The blockhash"}, | {RPCResult::Type::STR_HEX, "hash", "The blockhash"}, | ||||
{RPCResult::Type::NUM, "height", "Block height"}, | {RPCResult::Type::NUM, "height", "Block height"}, | ||||
}}, | }}, | ||||
RPCExamples{HelpExampleCli("waitforblock", | RPCExamples{HelpExampleCli("waitforblock", | ||||
"\"0000000000079f8ef3d2c688c244eb7a4570b24c9" | "\"0000000000079f8ef3d2c688c244eb7a4570b24c9" | ||||
"ed7b4a8c619eb02596f8862\", 1000") + | "ed7b4a8c619eb02596f8862\" 1000") + | ||||
HelpExampleRpc("waitforblock", | HelpExampleRpc("waitforblock", | ||||
"\"0000000000079f8ef3d2c688c244eb7a4570b24c9" | "\"0000000000079f8ef3d2c688c244eb7a4570b24c9" | ||||
"ed7b4a8c619eb02596f8862\", 1000")}, | "ed7b4a8c619eb02596f8862\", 1000")}, | ||||
} | } | ||||
.Check(request); | .Check(request); | ||||
int timeout = 0; | int timeout = 0; | ||||
▲ Show 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | RPCHelpMan{ | ||||
}, | }, | ||||
RPCResult{RPCResult::Type::OBJ, | RPCResult{RPCResult::Type::OBJ, | ||||
"", | "", | ||||
"", | "", | ||||
{ | { | ||||
{RPCResult::Type::STR_HEX, "hash", "The blockhash"}, | {RPCResult::Type::STR_HEX, "hash", "The blockhash"}, | ||||
{RPCResult::Type::NUM, "height", "Block height"}, | {RPCResult::Type::NUM, "height", "Block height"}, | ||||
}}, | }}, | ||||
RPCExamples{HelpExampleCli("waitforblockheight", "\"100\", 1000") + | RPCExamples{HelpExampleCli("waitforblockheight", "100 1000") + | ||||
HelpExampleRpc("waitforblockheight", "\"100\", 1000")}, | HelpExampleRpc("waitforblockheight", "100, 1000")}, | ||||
} | } | ||||
.Check(request); | .Check(request); | ||||
int timeout = 0; | int timeout = 0; | ||||
int height = request.params[0].get_int(); | int height = request.params[0].get_int(); | ||||
if (!request.params[1].isNull()) { | if (!request.params[1].isNull()) { | ||||
▲ Show 20 Lines • Show All 2,574 Lines • Show Last 20 Lines |