bitcoin/src/wallet
Wladimir J. van der Laan 95941396ff
Merge #12119: [wallet] use P2WPKH change output if any destination is P2WPKH or P2WSH
596c446 [wallet] use P2WPKH change output if any destination is P2WPKH or P2WSH (Sjors Provoost)

Pull request description:

  If `-changetype` is not explicitly set, then regardless of `-addresstype`, the wallet will use a ~`bech32` change address~ `P2WPKH` change output if any destination is `P2WPKH` or `P2WSH`.

  This seems more intuitive to me and more in line with the spirit of [BIP-69](https://github.com/bitcoin/bips/blob/master/bip-0069.mediawiki).

  When combined with #11991 a QT user could opt to use `bech32` exclusively without having to figure out how to launch with `-changetype=bech32`, although so would #11937.

Tree-SHA512: 9238d3ccd1f3be8dfdd43444ccf45d6bdc6584ced3172a3045f3ecfec4a7cc8999db0cdb76ae49236492a84e6dbf3a1fdf18544d3eaf6d518e1f8bd241db33e7
2018-01-24 15:22:42 +01:00
..
test Make sure WalletRescanReserver has successfully reserved the rescan 2018-01-23 20:24:18 -10:00
coincontrol.h Increment MIT Licence copyright header year on files modified in 2017 2018-01-03 02:26:56 +09:00
crypter.cpp Merge #11403: SegWit wallet support 2018-01-10 20:55:41 -10:00
crypter.h Increment MIT Licence copyright header year on files modified in 2017 2018-01-03 02:26:56 +09:00
db.cpp Abstract directory locking into util.cpp 2018-01-16 19:05:46 +13:00
db.h Add a lock to the wallet directory 2018-01-16 19:02:57 +13:00
feebumper.cpp scripted-diff: Replace #include "" with #include <> (ryanofsky) 2017-11-16 08:23:01 +13:00
feebumper.h [wallet] Change feebumper from class to functions 2017-11-10 17:16:46 -05:00
fees.cpp scripted-diff: Replace #include "" with #include <> (ryanofsky) 2017-11-16 08:23:01 +13:00
fees.h scripted-diff: Replace #include "" with #include <> (ryanofsky) 2017-11-16 08:23:01 +13:00
init.cpp Merge #12119: [wallet] use P2WPKH change output if any destination is P2WPKH or P2WSH 2018-01-24 15:22:42 +01:00
init.h [trivial] fixup comment for VerifyWallets() 2017-09-07 16:22:11 -07:00
rpcdump.cpp Mention that other RPC calls report keys as "imported" while txns are still missing 2018-01-23 20:24:53 -10:00
rpcwallet.cpp Merge #12119: [wallet] use P2WPKH change output if any destination is P2WPKH or P2WSH 2018-01-24 15:22:42 +01:00
rpcwallet.h Increment MIT Licence copyright header year on files modified in 2017 2018-01-03 02:26:56 +09:00
wallet.cpp Merge #12119: [wallet] use P2WPKH change output if any destination is P2WPKH or P2WSH 2018-01-24 15:22:42 +01:00
wallet.h Merge #12119: [wallet] use P2WPKH change output if any destination is P2WPKH or P2WSH 2018-01-24 15:22:42 +01:00
walletdb.cpp Increment MIT Licence copyright header year on files modified in 2017 2018-01-03 02:26:56 +09:00
walletdb.h Increment MIT Licence copyright header year on files modified in 2017 2018-01-03 02:26:56 +09:00
walletutil.cpp Don't allow relative -walletdir paths 2018-01-18 15:09:27 -05:00
walletutil.h Cleanups for walletdir PR 2017-12-13 23:36:43 +13:00