4294 | @@ -4314,3 +4295,11 @@ CTxDestination CWallet::AddAndGetDestinationForScript(const CScript& script, Out
4295 | default: assert(false);
4296 | }
4297 | }
4298 | +
4299 | +COutput CWallet::MakeOutput(const CWalletTx& wtx, int index, int depth, bool is_spendable, bool is_solvable, bool is_safe) const
4300 | +{
4301 | + // If known and signable by the given wallet, compute input bytes
4302 | + // Failure will keep this value -1
4303 | + int input_bytes = is_spendable ? GetSpendSize(wtx, index) : -1;
How about dropping GetSpendSize in favor of CalculateMaximumSignedInputSize? This is the only call. Previously GetSpendSize had fewer args but now they're basically equivalent. Or dropping CalculateMaximumSignedInputSize for some version of GetSpendSize, given the former is only called in CWallet contexts after this change. Could also wait for later. :P