Skip to content

Commit

Permalink
fix(openapi): Add defaults to rpc methods where needed (#8616)
Browse files Browse the repository at this point in the history
* add defaults for `getpeerinfo` and `getblocksubsidy`

* add default for `getmininginfo`

* add default to `getblockcount`

* add defaults to `getaddressbalance`, `getaddressutxos` and `getaddresstxids`

* add defaults to `validateaddress` and `z_validateaddress`

* add defaults to `getrawmempool` and `getdifficulty`

* add defaults to `sendrawtransaction` and `getrawtransaction`

* add defaults for `getnetworksolps` and `getnetworkhashps`

* add defaults for `submitblock` and `z_listunifiedreceivers`

* refactor and cleanup

* update spec

* add random request id

* add min transaction size to `GetRawTransaction` default

* improve `GetSubtrees` default

* change type to request id

* get new spec

* add a TODO

* add changelog entry
  • Loading branch information
oxarbitrage committed Jun 20, 2024
1 parent 95e4d09 commit bf6ec76
Show file tree
Hide file tree
Showing 12 changed files with 465 additions and 365 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org).
- We're no longer using general conditional compilation attributes for `tor`,
but only feature flags instead.
- Fixed a bug with trailing characters in the openapi spec method descriptions ([#8597](https://github.com/ZcashFoundation/zebra/pull/8597))
- Added default constructions for several RPC method responses([#8616](https://github.com/ZcashFoundation/zebra/pull/8616))

## [Zebra 1.7.0](https://github.com/ZcashFoundation/zebra/releases/tag/v1.7.0) - 2024-05-07

Expand Down
1 change: 1 addition & 0 deletions Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6149,6 +6149,7 @@ dependencies = [
"itertools 0.13.0",
"jsonrpc",
"quote",
"rand 0.8.5",
"regex",
"reqwest",
"serde",
Expand Down
Loading

0 comments on commit bf6ec76

Please sign in to comment.