Merge #12194: Add change type option to fundrawtransaction
16f6f59dc [qa] Test fundrawtransaction with change_type option (João Barbosa)
536ddeb17 [rpc] Add change_type option to fundrawtransaction (João Barbosa)
31dbd5af4 [wallet] Add change type to CCoinControl (João Barbosa)
Pull request description:
Adds a new option `change_type` to `fundrawtransaction` RPC. This is useful to override the node `-changetype` argument.
The new option is exclusive to `changeAddress` option, setting both raises a RPC error.
See also #11403, #12119.
Tree-SHA512: 654686444f6125e37015a62f167064d54ec335701534988447be4687fa5ef9c7980a8a07cc0a03fff6ea6c4c1abf0f77a8843d535c4f3fe0bf93f968a4e676e6
"\"changeAddress\" (string, optional, default pool address) The bitcoin address to receive the change\n"
"\"changeAddress\" (string, optional, default pool address) The bitcoin address to receive the change\n"
"\"changePosition\" (numeric, optional, default random) The index of the change output\n"
"\"changePosition\" (numeric, optional, default random) The index of the change output\n"
"\"change_type\" (string, optional) The output type to use. Only valid if changeAddress is not specified. Options are \"legacy\", \"p2sh-segwit\", and \"bech32\". Default is set by -changetype.\n"
"\"includeWatching\" (boolean, optional, default false) Also select inputs which are watch only\n"
"\"includeWatching\" (boolean, optional, default false) Also select inputs which are watch only\n"