diff --git a/src/wallet/spend.h b/src/wallet/spend.h index 4453fb2762..90aab71cf7 100644 --- a/src/wallet/spend.h +++ b/src/wallet/spend.h @@ -49,8 +49,15 @@ public: bool fSafe; COutput(const CWallet& wallet, const CWalletTx& wtx, int iIn, int nDepthIn, bool fSpendableIn, bool fSolvableIn, bool fSafeIn, bool use_max_sig_in = false) + : tx(&wtx), + i(iIn), + nDepth(nDepthIn), + nInputBytes(-1), + fSpendable(fSpendableIn), + fSolvable(fSolvableIn), + use_max_sig(use_max_sig_in), + fSafe(fSafeIn) { - tx = &wtx; i = iIn; nDepth = nDepthIn; fSpendable = fSpendableIn; fSolvable = fSolvableIn; fSafe = fSafeIn; nInputBytes = -1; use_max_sig = use_max_sig_in; // If known and signable by the given wallet, compute nInputBytes // Failure will keep this value -1 if (fSpendable) {