mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 02:33:24 -03:00
Merge bitcoin/bitcoin#24808: doc: update RPC argument and field naming guideline in developer notes
8b3f1e30f0
Update RPC argument and field naming guideline in developer notes (Jon Atack) Pull request description: Clarify the doc per the IRC discussion today at https://www.erisian.com.au/bitcoin-core-dev/log-2022-04-08.html#l-229. ACKs for top commit: mzumsande: Code Review ACK8b3f1e30f0
- I agree with the added guideline. Tree-SHA512: d0d06bc8d9587c0dc72545843097e48a4e27a9437ceca03c71d0aa4a9b8434971014687d8d2dd012b71e92b26d4ad116697365be3f2a8ed14daecfdb1d0982ef
This commit is contained in:
commit
87c7dcc60d
1 changed files with 4 additions and 1 deletions
|
@ -1220,7 +1220,10 @@ A few guidelines for introducing and reviewing new RPC interfaces:
|
|||
|
||||
- *Rationale*: Consistency with the existing interface.
|
||||
|
||||
- Argument naming: use snake case `fee_delta` (and not, e.g. camel case `feeDelta`)
|
||||
- Argument and field naming: please consider whether there is already a naming
|
||||
style or spelling convention in the API for the type of object in question
|
||||
(`blockhash`, for example), and if so, try to use that. If not, use snake case
|
||||
`fee_delta` (and not, e.g. `feedelta` or camel case `feeDelta`).
|
||||
|
||||
- *Rationale*: Consistency with the existing interface.
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue