mirror of
https://github.com/wownero/wownero-cpp.git
synced 2026-10-18 07:41:32 +02:00
fix query issue where full tx needed
refactor getTransfersAux(), getOutputsAux() query cycles supported
This commit is contained in:
@@ -55,9 +55,10 @@ int main(int argc, const char* argv[]) {
|
||||
monero_tx_query tx_query;
|
||||
tx_query.m_hash = "314a0f1375db31cea4dac4e0a51514a6282b43792269b3660166d4d2b46437ca";
|
||||
shared_ptr<monero_tx_wallet> tx = wallet_restored->get_txs(tx_query)[0];
|
||||
for (const shared_ptr<monero_incoming_transfer> in_transfer : tx->m_incoming_transfers) {
|
||||
uint64_t in_amount = in_transfer->m_amount.get();
|
||||
int account_index = in_transfer->m_account_index.get();
|
||||
for (const shared_ptr<monero_transfer> transfer : tx->get_transfers()) {
|
||||
bool is_incoming = transfer->is_incoming().get();
|
||||
uint64_t in_amount = transfer->m_amount.get();
|
||||
int account_index = transfer->m_account_index.get();
|
||||
}
|
||||
|
||||
// query incoming transfers to account 1
|
||||
|
||||
Reference in New Issue
Block a user