Skip to content

Commit 5f911c5

Browse files
committed
trivial: fix address_type help text of getnewaddress and getrawchangeaddress
1 parent 45cf8a0 commit 5f911c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wallet/rpcwallet.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ UniValue getnewaddress(const JSONRPCRequest& request)
144144
"so payments received with the address will be credited to 'account'.\n"
145145
"\nArguments:\n"
146146
"1. \"account\" (string, optional) DEPRECATED. The account name for the address to be linked to. If not provided, the default account \"\" is used. It can also be set to the empty string \"\" to represent the default account. The account does not need to exist, it will be created if there is no account by the given name.\n"
147-
"2. \"address_type\" (string, optional) The address type to use. Options are \"legacy\", \"p2sh\", and \"bech32\". Default is set by -addresstype.\n"
147+
"2. \"address_type\" (string, optional) The address type to use. Options are \"legacy\", \"p2sh-segwit\", and \"bech32\". Default is set by -addresstype.\n"
148148
"\nResult:\n"
149149
"\"address\" (string) The new bitcoin address\n"
150150
"\nExamples:\n"
@@ -242,7 +242,7 @@ UniValue getrawchangeaddress(const JSONRPCRequest& request)
242242
"\nReturns a new Bitcoin address, for receiving change.\n"
243243
"This is for use with raw transactions, NOT normal use.\n"
244244
"\nArguments:\n"
245-
"1. \"address_type\" (string, optional) The address type to use. Options are \"legacy\", \"p2sh\", and \"bech32\". Default is set by -changetype.\n"
245+
"1. \"address_type\" (string, optional) The address type to use. Options are \"legacy\", \"p2sh-segwit\", and \"bech32\". Default is set by -changetype.\n"
246246
"\nResult:\n"
247247
"\"address\" (string) The address\n"
248248
"\nExamples:\n"

0 commit comments

Comments
 (0)