From 16a75c77cd187e4aebccb6a6d7f37a9b50ad39d9 Mon Sep 17 00:00:00 2001 From: mxaddict Date: Sat, 3 Aug 2024 02:18:20 +0800 Subject: [PATCH] Fixed docs for getblocktemplate cli command --- src/rpc/mining.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/rpc/mining.cpp b/src/rpc/mining.cpp index 0fb68cf8dbba4..64c9b29955f97 100644 --- a/src/rpc/mining.cpp +++ b/src/rpc/mining.cpp @@ -692,7 +692,9 @@ static RPCHelpMan getblocktemplate() {RPCResult::Type::STR_HEX, "eta_fiat_shamir", /*optional=*/true, "Only on Proof of Stake"}, {RPCResult::Type::NUM, "modifier", /*optional=*/true, "Only on Proof of Stake"}, {RPCResult::Type::NUM, "prev_time", /*optional=*/true, "Only on Proof of Stake"}, - {RPCResult::Type::OBJ, "staked_commitments", /*optional=*/true, "Only on Proof of Stake"}, + {RPCResult::Type::ARR, "staked_commitments", /*optional=*/true, "Only on Proof of Stake", { + {RPCResult::Type::STR_HEX, "", "staked_commitment"}, + }}, {RPCResult::Type::STR_HEX, "default_witness_commitment", /*optional=*/true, "a valid witness commitment for the unmodified block template"}, }}, },