Skip to content

Commit 8b3f1e3

Browse files
jonatacklaanwj
andcommitted
Update RPC argument and field naming guideline in developer notes
Co-authored-by: laanwj <[email protected]>
1 parent e0680bb commit 8b3f1e3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

doc/developer-notes.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1220,7 +1220,10 @@ A few guidelines for introducing and reviewing new RPC interfaces:
12201220

12211221
- *Rationale*: Consistency with the existing interface.
12221222

1223-
- Argument naming: use snake case `fee_delta` (and not, e.g. camel case `feeDelta`)
1223+
- Argument and field naming: please consider whether there is already a naming
1224+
style or spelling convention in the API for the type of object in question
1225+
(`blockhash`, for example), and if so, try to use that. If not, use snake case
1226+
`fee_delta` (and not, e.g. `feedelta` or camel case `feeDelta`).
12241227

12251228
- *Rationale*: Consistency with the existing interface.
12261229

0 commit comments

Comments
 (0)