Skip to content

Commit 2cdd4df

Browse files
jonatackluke-jr
authored andcommitted
Bugfix: RPC/blockchain: Correct type of "value" in getblock docs; add missing "desc"
1 parent 194f6dc commit 2cdd4df

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/rpc/blockchain.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,10 +614,11 @@ const RPCResult getblock_vin{
614614
{
615615
{RPCResult::Type::BOOL, "generated", "Coinbase or not"},
616616
{RPCResult::Type::NUM, "height", "The height of the prevout"},
617-
{RPCResult::Type::NUM, "value", "The value in " + CURRENCY_UNIT},
617+
{RPCResult::Type::STR_AMOUNT, "value", "The value in " + CURRENCY_UNIT},
618618
{RPCResult::Type::OBJ, "scriptPubKey", "",
619619
{
620620
{RPCResult::Type::STR, "asm", "The asm"},
621+
{RPCResult::Type::STR, "desc", "Inferred descriptor for the output"},
621622
{RPCResult::Type::STR_HEX, "hex", "The hex"},
622623
{RPCResult::Type::STR, "address", /*optional=*/true, "The Bitcoin address (only if a well-defined address exists)"},
623624
{RPCResult::Type::STR, "type", "The type (one of: " + GetAllOutputTypes() + ")"},

0 commit comments

Comments
 (0)