mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-09 19:37:27 -03:00
Update RPC argument and field naming guideline in developer notes
Co-authored-by: laanwj <126646+laanwj@users.noreply.github.com>
This commit is contained in:
parent
e0680bbce8
commit
8b3f1e30f0
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…
Reference in a new issue