Skip to content

Commit c7c64db

Browse files
committed
wallet: cleanup COutput constructor
1 parent 8435d7f commit c7c64db

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/wallet/spend.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,15 @@ class COutput
4949
bool fSafe;
5050

5151
COutput(const CWallet& wallet, const CWalletTx& wtx, int iIn, int nDepthIn, bool fSpendableIn, bool fSolvableIn, bool fSafeIn, bool use_max_sig_in = false)
52+
: tx(&wtx),
53+
i(iIn),
54+
nDepth(nDepthIn),
55+
nInputBytes(-1),
56+
fSpendable(fSpendableIn),
57+
fSolvable(fSolvableIn),
58+
use_max_sig(use_max_sig_in),
59+
fSafe(fSafeIn)
5260
{
53-
tx = &wtx; i = iIn; nDepth = nDepthIn; fSpendable = fSpendableIn; fSolvable = fSolvableIn; fSafe = fSafeIn; nInputBytes = -1; use_max_sig = use_max_sig_in;
5461
// If known and signable by the given wallet, compute nInputBytes
5562
// Failure will keep this value -1
5663
if (fSpendable) {

0 commit comments

Comments
 (0)