Skip to content

Commit

Permalink
docs: rpc help correction (#5877)
Browse files Browse the repository at this point in the history
## Issue being fixed or feature implemented
Help field showed wrong type

## What was done?
Changed height to number instead of string


## How Has This Been Tested?
Locally

## Breaking Changes
N/A

## Checklist:
_Go over all the following points, and put an `x` in all the boxes that
apply._
- [x] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have added or updated relevant unit/integration/functional/e2e
tests
- [ ] I have made corresponding changes to the documentation
- [x] I have assigned this pull request to a milestone _(for repository
code-owners and collaborators only)_
  • Loading branch information
thephez authored Feb 16, 2024
1 parent fa4ced9 commit c5fcab9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rpc/blockchain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1165,7 +1165,7 @@ static UniValue getblock(const JSONRPCRequest& request)
{RPCResult::Type::OBJ, "cbTx", "The coinbase special transaction",
{
{RPCResult::Type::NUM, "version", "The coinbase special transaction version"},
{RPCResult::Type::STR_HEX, "height", "The block height"},
{RPCResult::Type::NUM, "height", "The block height"},
{RPCResult::Type::STR_HEX, "merkleRootMNList", "The merkle root of the masternode list"},
{RPCResult::Type::STR_HEX, "merkleRootQuorums", "The merkle root of the quorum list"},
}},
Expand Down

0 comments on commit c5fcab9

Please sign in to comment.