Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/rpcwallet.cpp
Show First 20 Lines • Show All 1,928 Lines • ▼ Show 20 Lines | static UniValue listsinceblock(const Config &config, | ||||
bool include_removed = | bool include_removed = | ||||
(request.params[3].isNull() || request.params[3].get_bool()); | (request.params[3].isNull() || request.params[3].get_bool()); | ||||
int depth = height ? pwallet->GetLastBlockHeight() + 1 - *height : -1; | int depth = height ? pwallet->GetLastBlockHeight() + 1 - *height : -1; | ||||
UniValue transactions(UniValue::VARR); | UniValue transactions(UniValue::VARR); | ||||
for (const std::pair<const TxId, CWalletTx> &pairWtx : pwallet->mapWallet) { | for (const std::pair<const TxId, CWalletTx> &pairWtx : pwallet->mapWallet) { | ||||
CWalletTx tx = pairWtx.second; | const CWalletTx &tx = pairWtx.second; | ||||
if (depth == -1 || tx.GetDepthInMainChain() < depth) { | if (depth == -1 || tx.GetDepthInMainChain() < depth) { | ||||
ListTransactions(pwallet, tx, 0, true, transactions, filter, | ListTransactions(pwallet, tx, 0, true, transactions, filter, | ||||
nullptr /* filter_label */); | nullptr /* filter_label */); | ||||
} | } | ||||
} | } | ||||
// when a reorg'd block is requested, we also list any relevant transactions | // when a reorg'd block is requested, we also list any relevant transactions | ||||
▲ Show 20 Lines • Show All 3,150 Lines • Show Last 20 Lines |