mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 10:43:19 -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;
|
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)
|
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
|
// If known and signable by the given wallet, compute nInputBytes
|
||||||
// Failure will keep this value -1
|
// Failure will keep this value -1
|
||||||
if (fSpendable) {
|
if (fSpendable) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue