MCPcopy Create free account
hub / github.com/ElementsProject/elements / COutput

Method COutput

src/wallet/spend.h:54–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52 bool fSafe;
53
54 COutput(const CWallet& wallet, const CWalletTx& wtx, int iIn, int nDepthIn, bool fSpendableIn, bool fSolvableIn, bool fSafeIn, bool use_max_sig_in = false)
55 {
56 tx = &wtx; i = iIn; nDepth = nDepthIn; fSpendable = fSpendableIn; fSolvable = fSolvableIn; fSafe = fSafeIn; nInputBytes = -1; use_max_sig = use_max_sig_in;
57 // If known and signable by the given wallet, compute nInputBytes
58 // Failure will keep this value -1
59 if (fSpendable) {
60 nInputBytes = GetTxSpendSize(wallet, wtx, i, use_max_sig);
61 }
62 }
63
64 std::string ToString(const CWallet& wallet) const;
65

Callers

nothing calls this directly

Calls 1

GetTxSpendSizeFunction · 0.85

Tested by

no test coverage detected