Skip to content

Commit c821ab8

Browse files
committed
Use GetAllOutputTypes in getblock RPC function
1 parent d970a85 commit c821ab8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rpc/blockchain.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1037,7 +1037,7 @@ static RPCHelpMan getblock()
10371037
{RPCResult::Type::STR, "asm", "The asm"},
10381038
{RPCResult::Type::STR, "hex", "The hex"},
10391039
{RPCResult::Type::STR, "address", /* optional */ true, "The Bitcoin address (only if a well-defined address exists)"},
1040-
{RPCResult::Type::STR, "type", "The type, eg 'pubkeyhash'"},
1040+
{RPCResult::Type::STR, "type", "The type (one of: " + GetAllOutputTypes() + ")"},
10411041
}},
10421042
}},
10431043
}},

0 commit comments

Comments
 (0)