MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / MakeWalletTxOut

Function MakeWalletTxOut

src/interfaces/wallet.cpp:107–115  ·  view source on GitHub ↗

Construct wallet TxOut struct.

Source from the content-addressed store, hash-verified

105
106//! Construct wallet TxOut struct.
107WalletTxOut MakeWalletTxOut(CWallet& wallet, const CWalletTx& wtx, int n, int depth)
108{
109 WalletTxOut result;
110 result.txout = wtx.tx->vout[n];
111 result.time = wtx.GetTxTime();
112 result.depth_in_main_chain = depth;
113 result.is_spent = wallet.IsSpent(wtx.GetHash(), n);
114 return result;
115}
116
117class WalletImpl : public Wallet
118{

Callers 2

listCoinsMethod · 0.85
getCoinsMethod · 0.85

Calls 3

GetTxTimeMethod · 0.80
IsSpentMethod · 0.45
GetHashMethod · 0.45

Tested by

no test coverage detected