Skip to content

Commit 93b07ed

Browse files
committed
merge bitcoin#24579: Fix getblockchaininfo/getdeploymentinfo RPC docs
1 parent 9b99f1f commit 93b07ed

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/rpc/blockchain.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1493,7 +1493,7 @@ RPCHelpMan getblockchaininfo()
14931493
{RPCResult::Type::NUM, "pruneheight", /*optional=*/true, "height of the last block pruned, plus one (only present if pruning is enabled)"},
14941494
{RPCResult::Type::BOOL, "automatic_pruning", /*optional=*/true, "whether automatic pruning is enabled (only present if pruning is enabled)"},
14951495
{RPCResult::Type::NUM, "prune_target_size", /*optional=*/true, "the target size used by pruning (only present if automatic pruning is enabled)"},
1496-
{RPCResult::Type::OBJ_DYN, "softforks", "(DEPRECATED, returned only if config option -deprecatedrpc=softforks is passed) status of softforks in progress",
1496+
{RPCResult::Type::OBJ_DYN, "softforks", /*optional=*/true, "(DEPRECATED, returned only if config option -deprecatedrpc=softforks is passed) status of softforks in progress",
14971497
{
14981498
{RPCResult::Type::OBJ, "xxxx", "name of the softfork",
14991499
RPCHelpForDeployment
@@ -1503,7 +1503,7 @@ RPCHelpMan getblockchaininfo()
15031503
}},
15041504
RPCExamples{
15051505
HelpExampleCli("getblockchaininfo", "")
1506-
+ HelpExampleRpc("getblockchaininfo", "")
1506+
+ HelpExampleRpc("getblockchaininfo", "")
15071507
},
15081508
[&](const RPCHelpMan& self, const JSONRPCRequest& request) -> UniValue
15091509
{
@@ -1583,7 +1583,7 @@ const std::vector<RPCResult> RPCHelpForDeployment{
15831583
{RPCResult::Type::NUM, "count", "the number of blocks with the version bit set in the current period"},
15841584
{RPCResult::Type::BOOL, "possible", /*optional=*/true, "returns false if there are not enough blocks left in this period to pass activation threshold (only for \"started\" status)"},
15851585
}},
1586-
{RPCResult::Type::STR, "signalling", "indicates blocks that signalled with a # and blocks that did not with a -"},
1586+
{RPCResult::Type::STR, "signalling", /*optional=*/true, "indicates blocks that signalled with a # and blocks that did not with a -"},
15871587
}},
15881588
};
15891589

@@ -1629,7 +1629,7 @@ static RPCHelpMan getdeploymentinfo()
16291629
RPCResult::Type::OBJ, "", "", {
16301630
{RPCResult::Type::STR, "hash", "requested block hash (or tip)"},
16311631
{RPCResult::Type::NUM, "height", "requested block height (or tip)"},
1632-
{RPCResult::Type::OBJ, "deployments", "", {
1632+
{RPCResult::Type::OBJ_DYN, "deployments", "", {
16331633
{RPCResult::Type::OBJ, "xxxx", "name of the deployment", RPCHelpForDeployment}
16341634
}},
16351635
}

0 commit comments

Comments
 (0)