mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-10 20:03:34 -03:00
wallet: cleanup COutput constructor
This commit is contained in:
parent
8435d7f11a
commit
c7c64db41e
1 changed files with 8 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue