Changeset View
Changeset View
Standalone View
Standalone View
src/interfaces/wallet.cpp
Show First 20 Lines • Show All 85 Lines • ▼ Show 20 Lines | namespace { | ||||
//! Construct wallet tx status struct. | //! Construct wallet tx status struct. | ||||
WalletTxStatus MakeWalletTxStatus(const CWalletTx &wtx) { | WalletTxStatus MakeWalletTxStatus(const CWalletTx &wtx) { | ||||
WalletTxStatus result; | WalletTxStatus result; | ||||
CBlockIndex *block = LookupBlockIndex(wtx.hashBlock); | CBlockIndex *block = LookupBlockIndex(wtx.hashBlock); | ||||
result.block_height = | result.block_height = | ||||
(block ? block->nHeight : std::numeric_limits<int>::max()), | (block ? block->nHeight : std::numeric_limits<int>::max()), | ||||
result.blocks_to_maturity = wtx.GetBlocksToMaturity(); | result.blocks_to_maturity = wtx.GetBlocksToMaturity(); | ||||
result.depth_in_main_chain = wtx.GetDepthInMainChain(); | result.depth_in_main_chain = wtx.GetDepthInMainChain(); | ||||
result.request_count = wtx.GetRequestCount(); | |||||
result.time_received = wtx.nTimeReceived; | result.time_received = wtx.nTimeReceived; | ||||
result.lock_time = wtx.tx->nLockTime; | result.lock_time = wtx.tx->nLockTime; | ||||
result.is_final = CheckFinalTx(*wtx.tx); | result.is_final = CheckFinalTx(*wtx.tx); | ||||
result.is_trusted = wtx.IsTrusted(); | result.is_trusted = wtx.IsTrusted(); | ||||
result.is_abandoned = wtx.isAbandoned(); | result.is_abandoned = wtx.isAbandoned(); | ||||
result.is_coinbase = wtx.IsCoinBase(); | result.is_coinbase = wtx.IsCoinBase(); | ||||
result.is_in_main_chain = wtx.IsInMainChain(); | result.is_in_main_chain = wtx.IsInMainChain(); | ||||
return result; | return result; | ||||
▲ Show 20 Lines • Show All 330 Lines • Show Last 20 Lines |