Construct wallet TxOut struct.
| 105 | |
| 106 | //! Construct wallet TxOut struct. |
| 107 | WalletTxOut 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 | |
| 117 | class WalletImpl : public Wallet |
| 118 | { |