wallet: cleanup COutput constructor

This commit is contained in:
Andrew Chow 2022-01-18 19:10:39 -05:00
parent 8435d7f11a
commit c7c64db41e

View file

@ -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) {