mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-07 19:22:17 +01:00
scripted-diff: Add missing spaces in RPCResult, Fix type names
This makes the rendered diff smaller when the RPCResult is machine generated later on -BEGIN VERIFY SCRIPT- # Add space after dictionary key and before colon sed -i --regexp-extended -e 's/(^ +" +\\"[a-zA-Z_]+\\"): ?/\1 : /g' $(git grep -l '\\":') # Rename (array) to (json array) sed -i -e 's/ (array) / (json array) /g' $(git grep -l '(array)' ./src) # Rename (object) to (json object) sed -i -e 's/ (object) / (json object) /g' $(git grep -l '(object)' ./src) # Rename (bool) to (boolean) sed -i -e 's/ (bool) / (boolean) /g' $(git grep -l '(bool)' ./src) # Rename (int) to (numeric) sed -i -e 's/ (int) / (numeric) /g' $(git grep -l '(int)' ./src) -END VERIFY SCRIPT-
This commit is contained in:
@@ -198,14 +198,14 @@ static UniValue getrpcinfo(const JSONRPCRequest& request)
|
||||
{},
|
||||
RPCResult{
|
||||
"{\n"
|
||||
" \"active_commands\" (array) All active commands\n"
|
||||
" \"active_commands\" (json array) All active commands\n"
|
||||
" [\n"
|
||||
" { (object) Information about an active command\n"
|
||||
" { (json object) Information about an active command\n"
|
||||
" \"method\" (string) The name of the RPC command \n"
|
||||
" \"duration\" (numeric) The running time in microseconds\n"
|
||||
" },...\n"
|
||||
" ],\n"
|
||||
" \"logpath\": \"xxx\" (string) The complete file path to the debug log\n"
|
||||
" \"logpath\" : \"xxx\" (string) The complete file path to the debug log\n"
|
||||
"}\n"
|
||||
},
|
||||
RPCExamples{
|
||||
|
||||
Reference in New Issue
Block a user