From c7c64db41e1718584aa2f30ff27f60ab0966de62 Mon Sep 17 00:00:00 2001 From: Andrew Chow Date: Tue, 18 Jan 2022 19:10:39 -0500 Subject: [PATCH] wallet: cleanup COutput constructor --- src/wallet/spend.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/wallet/spend.h b/src/wallet/spend.h index 4453fb27625..90aab71cf76 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) {