Using the Bitcoin Core wallet making a transaction which spends a native segwit output and pays to a p2sh-wrapped segwit output will create a p2sh-wrapped change output.
It is different from my expectation that the change output type would match the spent output’s type. I’m using version 25.0. I believe this different was different in previous versions (such as 22.0).
Did the behaviour of the Bitcoin Core wallet change? And what is the purpose of matching the payment output type instead of the spent output type?












