diff options
author | Andrew Chow <achow101-github@achow101.com> | 2022-01-18 19:10:39 -0500 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2022-03-17 10:49:16 -0400 |
commit | c7c64db41e1718584aa2f30ff27f60ab0966de62 (patch) | |
tree | daa85a3375a53d5a64a63d46cb4d49b8bee9e32d /src | |
parent | 8435d7f11a89bb3f93306646f62cc2179693e072 (diff) |
wallet: cleanup COutput constructor
Diffstat (limited to 'src')
-rw-r--r-- | src/wallet/spend.h | 9 |
1 files changed, 8 insertions, 1 deletions
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) { |