632 | @@ -633,8 +633,8 @@ static RPCHelpMan getblocktemplate()
633 | {RPCResult::Type::OBJ, "", "",
634 | {
635 | {RPCResult::Type::STR_HEX, "data", "transaction data encoded in hexadecimal (byte-for-byte)"},
636 | - {RPCResult::Type::STR_HEX, "txid", "transaction id encoded in little-endian hexadecimal"},
637 | - {RPCResult::Type::STR_HEX, "hash", "hash encoded in little-endian hexadecimal (including witness data)"},
638 | + {RPCResult::Type::STR_HEX, "txid", "transaction hash excluding witness data, shown in byte-reversed hex"},
639 | + {RPCResult::Type::STR_HEX, "hash", "transaction hash including witness data, shown in byte-reversed hex"},
Nit: Call it hexadecimal instead of hex like done in the "data" field for better consistency?
re: #31596 (review)
Nit: Call it hexadecimal instead of hex like done in the "data" field for better consistency?
I would probably prefer to go the other way since the term "hex" occurs more frequently than "hexadecimal" in RPC code and documentation (115 vs 11 times). I'm hoping we might be able to improve consistency by moving this information from descriptions of RPC fields to descriptions of RPC types and left another comment about this.