diff options
author | Jon Atack <jon@atack.com> | 2022-03-30 23:52:04 +0200 |
---|---|---|
committer | Luke Dashjr <luke-jr+git@utopios.org> | 2022-07-25 03:36:15 +0000 |
commit | 2cdd4df1406fc3ea892ecc29cd78fcded2ae4e10 (patch) | |
tree | 4748dc8b8ea5d56c23e7ad0bd2241cbad136e6d4 /src/rpc | |
parent | 194f6dc43ccc330a8a4607be3a2b8935490d6db0 (diff) | |
download | bitcoin-2cdd4df1406fc3ea892ecc29cd78fcded2ae4e10.tar.xz |
Bugfix: RPC/blockchain: Correct type of "value" in getblock docs; add missing "desc"
Diffstat (limited to 'src/rpc')
-rw-r--r-- | src/rpc/blockchain.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rpc/blockchain.cpp b/src/rpc/blockchain.cpp index 1635851afb..b3da259c35 100644 --- a/src/rpc/blockchain.cpp +++ b/src/rpc/blockchain.cpp @@ -614,10 +614,11 @@ const RPCResult getblock_vin{ { {RPCResult::Type::BOOL, "generated", "Coinbase or not"}, {RPCResult::Type::NUM, "height", "The height of the prevout"}, - {RPCResult::Type::NUM, "value", "The value in " + CURRENCY_UNIT}, + {RPCResult::Type::STR_AMOUNT, "value", "The value in " + CURRENCY_UNIT}, {RPCResult::Type::OBJ, "scriptPubKey", "", { {RPCResult::Type::STR, "asm", "The asm"}, + {RPCResult::Type::STR, "desc", "Inferred descriptor for the output"}, {RPCResult::Type::STR_HEX, "hex", "The hex"}, {RPCResult::Type::STR, "address", /*optional=*/true, "The Bitcoin address (only if a well-defined address exists)"}, {RPCResult::Type::STR, "type", "The type (one of: " + GetAllOutputTypes() + ")"}, |