29 | @@ -30,5 +30,5 @@ bool EnsureWalletIsAvailable(CWallet *, bool avoidException);
30 |
31 | UniValue getaddressinfo(const JSONRPCRequest& request);
32 | UniValue signrawtransactionwithwallet(const JSONRPCRequest& request);
33 | -bool FillPSBT(const CWallet* pwallet, PartiallySignedTransaction& psbtx, int sighash_type = 1, bool sign = true, bool bip32derivs = false);
34 | +bool FillPSBT(const CWallet* pwallet, PartiallySignedTransaction& psbtx, int sighash_type = 1 /* SIGHASH_ALL */, bool sign = true, bool bip32derivs = false);
Why not int sighash_type = SIGHASH_ALL directly?
Well, I wouldn't want to do that without #including script/interpreter.h for the definition of SIGHASH_ALL. (As it turns out, it works without doing that, but that means it's counting on other files to #include specific things in a specific order, which is gross and wrong.) And I didn't want to add a dependency to a header file just for a constant.
But it seems like everything in the universe already includes interpreter.h anyway, so I'm willing to make the change if you prefer.
Oh, I see. I was just wondering if there was a reason - seems there is. No need to hold this PR up for.