mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-04 02:02:42 +02:00
Merge #18122: rpc: update validateaddress RPCExamples to bech32
7f1475c711rpc: update validateaddress RPCExamples to bech32 (Sebastian Falbesoner) Pull request description: Another small step to get rid of legacy addresses in the RPC help texts and by that encourage the use of bech32 addresses by default. The (invalid) address is the same as in the `getaddressinfo` RPC (see2ee0cb3330, kudos to jonatack!), I don't think it adds any value to have a different example address per RPC. ACKs for top commit: fanquake: ACK7f1475c711MarcoFalke: ACK7f1475c711Tree-SHA512: 2350f61fa942a9053f9f5c860ea446965dc7209c71c81bdb98a859d03ca23b225ad72c9c506e4a55c8d8988823d9cfbe808c1a452a1eeadb70ab186b146dd4ca
This commit is contained in:
@@ -1089,7 +1089,8 @@ A few guidelines for introducing and reviewing new RPC interfaces:
|
||||
new RPC is replacing a deprecated RPC, to avoid both RPCs confusingly
|
||||
showing up in the command list.
|
||||
|
||||
- Use *invalid* bech32 addresses for `RPCExamples` help documentation.
|
||||
- Use *invalid* bech32 addresses (e.g. the constant `EXAMPLE_ADDRESS`) for
|
||||
`RPCExamples` help documentation.
|
||||
|
||||
- *Rationale*: Prevent accidental transactions by users and encourage the use
|
||||
of bech32 addresses by default.
|
||||
|
||||
Reference in New Issue
Block a user