Skip to content

Commit faaf34a

Browse files
author
MarcoFalke
committed
doc: Remove section about RPC alias via function pointer
This is no longer possible with RPCHelpMan.
1 parent 2222d61 commit faaf34a

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

doc/developer-notes.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1429,17 +1429,6 @@ A few guidelines for introducing and reviewing new RPC interfaces:
14291429
until the wallet is caught up to the chainstate as of the RPC call's entry.
14301430
This also makes the API much easier for RPC clients to reason about.
14311431

1432-
- Be aware of RPC method aliases and generally avoid registering the same
1433-
callback function pointer for different RPCs.
1434-
1435-
- *Rationale*: RPC methods registered with the same function pointer will be
1436-
considered aliases and only the first method name will show up in the
1437-
`help` RPC command list.
1438-
1439-
- *Exception*: Using RPC method aliases may be appropriate in cases where a
1440-
new RPC is replacing a deprecated RPC, to avoid both RPCs confusingly
1441-
showing up in the command list.
1442-
14431432
- Use *invalid* bech32 addresses (e.g. in the constant array `EXAMPLE_ADDRESS`) for
14441433
`RPCExamples` help documentation.
14451434

0 commit comments

Comments
 (0)